Skip to content

Commit

Permalink
fix(code-snippet): remove focus from snippet container
Browse files Browse the repository at this point in the history
  • Loading branch information
tw15egan committed Jan 28, 2020
1 parent 5408899 commit 870e3a7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,11 @@
padding: 0 $spacing-03;
}

.#{$prefix}--snippet--single .#{$prefix}--snippet-container,
.#{$prefix}--snippet--multi .#{$prefix}--snippet-container {
@include focus-outline('reset');
}

// Single Line Snippet
.#{$prefix}--snippet--single {
@include bx--snippet;
Expand Down
2 changes: 0 additions & 2 deletions packages/react/src/components/CodeSnippet/CodeSnippet.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,6 @@ function CodeSnippet({
return (
<div {...rest} className={codeSnippetClasses}>
<div
role="textbox"
tabIndex={0}
className={`${prefix}--snippet-container`}
aria-label={ariaLabel || copyLabel || 'code-snippet'}>
<code>
Expand Down

0 comments on commit 870e3a7

Please sign in to comment.