Skip to content

Commit

Permalink
[PR feedback/discussion] Make selectors more goodly
Browse files Browse the repository at this point in the history
  • Loading branch information
cee-chen committed Feb 1, 2024
1 parent 0e1d750 commit 68fb642
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/components/empty_prompt/empty_prompt.styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,9 @@ export const euiEmptyPromptStyles = (euiThemeContext: UseEuiTheme) => {
/* I'm not totally sure why setting a percentage max width on the wrapper and a static
max-width on the underlying image/icon makes sense, but this ports over the previous Sass
styles as-is to avoid UI changes/regressions 🤷 Also for some bizarre reason, & > *
isn't enough specificity to override .euiImageWrapper's CSS */
& > *,
& > .euiImageWrapper {
styles as-is to avoid UI changes/regressions 🤷 */
/* Note: The extra && selector specificity is there to override euiImageWrapper's CSS */
&& > * {
${logicalCSS('max-width', iconMaxWidth)}
}
}
Expand Down

0 comments on commit 68fb642

Please sign in to comment.