Skip to content

Commit

Permalink
[PR feedback] Fix extra inline strut height on EuiSwitches
Browse files Browse the repository at this point in the history
  • Loading branch information
cee-chen committed Aug 19, 2024
1 parent 5abd42a commit 7cbbbb1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/eui/src/components/form/switch/switch.styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,9 @@ export const euiSwitchStyles = (euiThemeContext: UseEuiTheme) => {
position: relative;
display: inline-flex;
align-items: flex-start;
/* Required for inline-flex CSS to not render an extra 2-3px of strut height
* @see https://stackoverflow.com/a/27536461/4294462 */
vertical-align: middle;
`,
// Skip css`` to avoid generating an extra Emotion className
enabled: `
Expand Down

0 comments on commit 7cbbbb1

Please sign in to comment.