Skip to content

Commit 998cd84

Browse files
committed
Fix disabled hiding
The `hidden` attribute sadly gets overridden by the new `display: flex`, so we need to restore the `:disabled { display: none }` selector
1 parent 78e57b8 commit 998cd84

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

src/components/resizable_container/resizable_button.styles.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ export const euiResizableButtonStyles = (euiThemeContext: UseEuiTheme) => {
3232
justify-content: center;
3333
gap: ${mathWithUnits(grabHandleHeight, (x) => x * 2)};
3434
35+
&:disabled {
36+
display: none;
37+
}
38+
3539
/* 1 */
3640
&:hover,
3741
&:focus {

src/components/resizable_container/resizable_button.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,6 @@ export const EuiResizableButton: FunctionComponent<EuiResizableButtonProps> = ({
128128
onFocus={() => onFocus?.(resizerId)}
129129
onBlur={onBlur}
130130
disabled={isDisabled}
131-
hidden={isDisabled}
132131
{...rest}
133132
/>
134133
)}

0 commit comments

Comments
 (0)