Skip to content

Commit

Permalink
changelog + minor stylelint cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
cee-chen committed Sep 7, 2023
1 parent 3e82e7e commit e195f62
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,15 @@ import { UseEuiTheme } from '../../../services';
import { logicalCSS } from '../../../global_styling';

export const euiAccordionArrowStyles = ({ euiTheme }: UseEuiTheme) => ({
// !important overrides EuiButtonIcon's default transforms
euiAccordion__arrow: css`
/* stylelint-disable declaration-no-important */
flex-shrink: 0;
${logicalCSS('margin-right', euiTheme.size.xs)}
transform: rotate(
0deg
) !important; /* stylelint-disable-line declaration-no-important */
transform: rotate(0deg) !important;
`,
isOpen: css`
transform: rotate(
90deg
) !important; /* stylelint-disable-line declaration-no-important */
transform: rotate(90deg) !important;
`,
right: css`
${logicalCSS('margin-left', euiTheme.size.xs)}
Expand Down
4 changes: 4 additions & 0 deletions upcoming_changelogs/7161.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
**Accessibility**

- `EuiAccordion` now correctly respects reduced motion settings
- `EuiAccordion` now shows a focus outline to keyboard users around its revealed children on open

0 comments on commit e195f62

Please sign in to comment.