Skip to content
Merged
Show file tree
Hide file tree
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
5 changes: 5 additions & 0 deletions .changeset/blinking-cursor-shadowdom.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@wdio/visual-service": patch
---

Fix option "disableBlinkingCursor" to also work within shadowdom
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ exports[`setCustomCss > should be able to set the custom css with the default op

exports[`setCustomCss > should be able to set the custom css with the with disableBlinkingCursor set to true 1`] = `""`;

exports[`setCustomCss > should be able to set the custom css with the with disableBlinkingCursor set to true 2`] = `" input, textarea, [contenteditable]{caret-color: transparent !important;}"`;
exports[`setCustomCss > should be able to set the custom css with the with disableBlinkingCursor set to true 2`] = `" *{caret-color: transparent !important;}"`;

exports[`setCustomCss > should be able to set the custom css with the with padding set to 0 1`] = `""`;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export default function setCustomCss(cssOptions: CssOptions): void {
const { addressBarPadding, disableBlinkingCursor, disableCSSAnimation, id, toolBarPadding } = cssOptions
const bodyTopPadding = addressBarPadding === 0 ? '' : `body{padding-top:${addressBarPadding}px !important}`
const bodyBottomPadding = toolBarPadding === 0 ? '' : `body{padding-bottom:${toolBarPadding}px !important}`
const disableBlinkingCursorCss = disableBlinkingCursor ? ' input, textarea, [contenteditable]{caret-color: transparent !important;}' : ''
const disableBlinkingCursorCss = disableBlinkingCursor ? ' *{caret-color: transparent !important;}' : ''
const css = (disableCSSAnimation ? disableTransformationsTransitionsAnimations : '') +
bodyTopPadding +
bodyBottomPadding +
Expand Down
Loading