Skip to content

Commit

Permalink
feat: add global focus styles
Browse files Browse the repository at this point in the history
  • Loading branch information
mgadewoll committed Jul 17, 2024
1 parent bd2b9da commit b569f80
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/docusaurus-theme/src/theme/Root.styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import {
euiFontSizeFromScale,
euiLineHeightFromBaseline,
useEuiBackgroundColor,
useEuiFocusRing,
UseEuiTheme,
} from '@elastic/eui';

Expand Down Expand Up @@ -93,5 +94,10 @@ export const getGlobalStyles = ({ euiTheme }: UseEuiTheme) => {
border-radius: 0;
font-size: inherit;
}
/* global styles */
* {
${useEuiFocusRing('outset', euiTheme.colors.primary)};
}
`;
};

0 comments on commit b569f80

Please sign in to comment.