Skip to content

Commit e06d3c4

Browse files
fix: Adjust styling for inline label on disabled select (#3936)
1 parent 8584b2b commit e06d3c4

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/select/parts/styles.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,9 @@ $inlineLabel-border-radius: 2px;
127127
padding-inline: awsui.$space-scaled-xxs;
128128
max-inline-size: calc(100% - (2 * awsui.$space-field-horizontal));
129129
z-index: 1;
130+
&-disabled {
131+
background: linear-gradient(to bottom, awsui.$color-background-layout-main, awsui.$color-background-input-disabled);
132+
}
130133
}
131134

132135
// Specific Styling for Inline Label Text to not overlap with Inline Tokens

src/select/parts/trigger.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ const Trigger = React.forwardRef(
132132
htmlFor={controlId}
133133
className={clsx(
134134
styles['inline-label'],
135+
disabled && styles['inline-label-disabled'],
135136
triggerVariant === 'tokens' && styles['inline-label-inline-tokens']
136137
)}
137138
>

0 commit comments

Comments
 (0)