Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions packages/eui/src/components/form/switch/switch.styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ const bodyStyles = ({ colorMode }: UseEuiTheme, { colors }: EuiSwitchVars) => {
inset: 0;
overflow: hidden;
border-radius: inherit;
pointer-events: none; /* Required for Kibana's Selenium driver to be able to click switches in FTR tests */
`,
on: css`
background-color: ${colors.on};
Expand Down Expand Up @@ -242,6 +243,7 @@ const thumbStyles = ({ euiTheme }: UseEuiTheme, switchVars: EuiSwitchVars) => {
${logicalCSS('width', 'fit-content')}
${logicalCSS('height', '100%')}
border-radius: 50%;
pointer-events: none; /* Required for Kibana's Selenium driver to be able to click switches in FTR tests */

${euiCanAnimate} {
transition-property: inset-inline-start, transform, background-color,
Expand Down