Skip to content

Commit

Permalink
fix: focus ring for js editor
Browse files Browse the repository at this point in the history
  • Loading branch information
albinAppsmith committed Feb 5, 2025
1 parent ff8329c commit 0cd9387
Showing 1 changed file with 11 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ export const EditorWrapper = styled.div<{
.cm-s-duotone-light.CodeMirror {
border-radius: var(--ads-v2-border-radius);
/* ${(props) =>
props.showFocusVisible &&
props.isFocused &&
`outline: ${
props?.removeHoverAndFocusStyle
Expand Down Expand Up @@ -402,13 +403,17 @@ export const EditorWrapper = styled.div<{
}
}
&:focus-visible {
.CodeMirror.cm-s-duotone-light {
outline: var(--ads-v2-border-width-outline) solid
var(--ads-v2-color-outline);
outline-offset: -1px;
${(props) =>
props.showFocusVisible &&
`
&:focus-visible {
.CodeMirror.cm-s-duotone-light {
outline: var(--ads-v2-border-width-outline) solid
var(--ads-v2-color-outline);
outline-offset: -1px;
}
}
}
`}
${(props) =>
props.size === EditorSize.COMPACT ||
Expand Down

0 comments on commit 0cd9387

Please sign in to comment.