Skip to content

Commit

Permalink
[extra] Remove :has media query util - all evergreen browsers now s…
Browse files Browse the repository at this point in the history
…upport `:has`
  • Loading branch information
cee-chen committed Nov 19, 2024
1 parent 82960ba commit fc5baff
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 13 deletions.
7 changes: 0 additions & 7 deletions packages/eui/src/components/card/card.styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import { css } from '@emotion/react';

import {
euiPaddingSize,
euiSupportsHas,
logicalCSS,
logicals,
logicalTextAlignCSS,
Expand Down Expand Up @@ -218,12 +217,6 @@ export const euiCardTextStyles = (euiThemeContext: UseEuiTheme) => {
&:focus {
text-decoration: underline;
}
/* Progressive enhancement where we remove focus from text as
it will be applied to the whole card instead */
${euiSupportsHas} {
outline: none !important; /* stylelint-disable-line declaration-no-important */
}
`,

aligned: {
Expand Down
6 changes: 0 additions & 6 deletions packages/eui/src/global_styling/mixins/_helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -226,9 +226,3 @@ export const euiFullHeight = () => `
flex: 1 1 auto;
overflow: hidden;
`;

/**
* A constant storing the support for the `:has()` selector through a
* media query that will only apply the content it is supported.
*/
export const euiSupportsHas = '@supports(selector(:has(p)))';

0 comments on commit fc5baff

Please sign in to comment.