Skip to content

Commit 845bbe8

Browse files
authored
fix: 2063 update the style for read only input (#2103)
1 parent 75fbfdc commit 845bbe8

File tree

3 files changed

+34
-8
lines changed

3 files changed

+34
-8
lines changed

frontend/src/components/ReadOnlyInput/styles.scss

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,14 @@
55
padding: 0;
66
border: none;
77
text-overflow: ellipsis;
8+
9+
&:focus,
10+
&:active {
11+
outline: none;
12+
// Even with "outline" set to none, the rules below are necessary
13+
// to overwrite the default webkit styling behavior
14+
outline-color: transparent;
15+
outline-width: 0;
16+
}
817
}
918
}

frontend/src/components/SeedlotRegistrationSteps/OwnershipStep/SingleOwnerInfo/styles.scss

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,4 +118,29 @@
118118
@include type.type-style('code-02');
119119
}
120120
}
121+
122+
.#{vars.$bcgov-prefix}--text-input-wrapper--readonly,
123+
.#{vars.$bcgov-prefix}--combo-box--readonly {
124+
border-block-end: 0;
125+
126+
.#{vars.$bcgov-prefix}--list-box__field{
127+
button {
128+
display: none;
129+
}
130+
}
131+
132+
input {
133+
background: transparent;
134+
padding-left: 0;
135+
border-block-end: 0;
136+
&:focus,
137+
&:active {
138+
outline: none;
139+
// Even with "outline" set to none, the rules below are necessary
140+
// to overwrite the default webkit styling behavior
141+
outline-color: transparent;
142+
outline-width: 0;
143+
}
144+
}
145+
}
121146
}

frontend/src/views/Seedlot/SeedlotReview/styles.scss

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -62,14 +62,6 @@
6262
}
6363
}
6464

65-
.#{vars.$bcgov-prefix}--text-input-wrapper--readonly {
66-
.#{vars.$bcgov-prefix}--text-input {
67-
padding: 0;
68-
border: none;
69-
text-overflow: ellipsis;
70-
}
71-
}
72-
7365
.#{vars.$bcgov-prefix}--text-area__wrapper--readonly {
7466
.#{vars.$bcgov-prefix}--text-area {
7567
padding: 0;

0 commit comments

Comments
 (0)