File tree Expand file tree Collapse file tree 2 files changed +20
-3
lines changed
packages/@adobe/spectrum-css-temp/components/inputgroup Expand file tree Collapse file tree 2 files changed +20
-3
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,8 @@ governing permissions and limitations under the License.
44
44
flex-shrink : 0 ;
45
45
}
46
46
47
- & .is-disabled {
47
+ /* Quiet or invalid inputgroup field button should always have a border width. */
48
+ & .is-disabled : not (.spectrum-InputGroup--invalid ): not (.spectrum-InputGroup--quiet ) {
48
49
.spectrum-FieldButton {
49
50
border-width : 0 ;
50
51
}
Original file line number Diff line number Diff line change @@ -72,17 +72,33 @@ governing permissions and limitations under the License.
72
72
}
73
73
74
74
.spectrum-InputGroup--quiet {
75
+ /*
76
+ specifically for readonly inputgroups that aren't disabled since the button will have the disabled class
77
+ but we don't want the border color to be the disabled quiet one
78
+ */
79
+ & : not (.is-disabled ) {
80
+ .spectrum-FieldButton {
81
+ & : disabled ,
82
+ & : disabled : hover {
83
+ border-color : var (--spectrum-textfield-quiet-border-color );
84
+ }
85
+ }
86
+ }
87
+
75
88
.spectrum-FieldButton {
76
89
& ,
77
90
& : hover ,
78
91
& : focus ,
79
92
& : active ,
80
93
& .is-selected ,
81
94
& : invalid ,
82
- & .spectrum-FieldButton--invalid ,
95
+ & .spectrum-FieldButton--invalid {
96
+ border-color : var (--spectrum-textfield-quiet-border-color );
97
+ }
98
+
83
99
& : disabled ,
84
100
& : disabled : hover {
85
- border-color : var (--spectrum-textfield-quiet-border-color );
101
+ border-color : var (--spectrum-textfield-quiet-border-color-disabled );
86
102
}
87
103
}
88
104
You can’t perform that action at this time.
0 commit comments