Skip to content

Commit

Permalink
Cleanup and CL
Browse files Browse the repository at this point in the history
  • Loading branch information
cchaos committed Jun 27, 2022
1 parent ad78752 commit ee7c0a7
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 18 deletions.
4 changes: 1 addition & 3 deletions src/components/button/button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ export const EuiButtonDisplayDeprecated = forwardRef<
},
ref
) => {
const buttonIsDisabled = isLoading || isDisabled;
const buttonIsDisabled = isButtonDisabled({ isLoading, isDisabled });

const classes = classNames(
baseClassName,
Expand All @@ -215,9 +215,7 @@ export const EuiButtonDisplayDeprecated = forwardRef<
size && sizeToClassNameMap[size]
? `${baseClassName}${sizeToClassNameMap[size]}`
: null,
// fill && `${baseClassName}--fill`,
fullWidth && `${baseClassName}--fullWidth`,
// buttonIsDisabled && `${baseClassName}-isDisabled`,
className
);

Expand Down
15 changes: 0 additions & 15 deletions src/components/button/button_group/_button_group_button.scss
Original file line number Diff line number Diff line change
Expand Up @@ -89,21 +89,6 @@
}
}

// // Fix ghost/disabled look specifically
// .euiButtonGroupButton.euiButtonGroupButton-isDisabled.euiButtonGroupButton--ghost {
// &,
// &:hover,
// &:focus,
// &:focus-within {
// color: $euiButtonColorGhostDisabled;
// }

// &.euiButtonGroupButton-isSelected {
// background-color: $euiButtonColorGhostDisabled;
// color: makeHighContrastColor($euiButtonColorGhostDisabled, $euiButtonColorGhostDisabled, 2);
// }
// }

.euiButtonGroupButton-isSelected {
z-index: 0;
}
Expand Down
16 changes: 16 additions & 0 deletions upcoming_changelogs/5989.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
- Updated button `ghost` colors to be `colorMode = 'dark'` themed `text` buttons
- Renamed `ButtonColor` and `ButtonSize` types to prefixed versions `EuiButtonColor` and `EuiButtonSize`

**Deprecations**

- Deprecated `ghost` color for `EuiButton`, `EuiButtonIcon`, `EuiButtonEmpty`

**Breaking changes**

- Removed `EuiButtonIconColor` and `EuiButtonEmptyColor` types, use `EuiButtonIconProps['color']` and `EuiButtonEmptyProps['color']` instead
- Removed support for `ghost` color from `EuiButtonGroup`

**CSS-in-JS**

- Converted `EuiButton` to Emotion
- Converted color styles of `EuiButtonIcon`, `EuiButtonEmpty`, `EuiButtonGroup`

0 comments on commit ee7c0a7

Please sign in to comment.