Skip to content

Commit

Permalink
fix(CodeSnippet): resolve issue with disabled styles (#12953)
Browse files Browse the repository at this point in the history
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
  • Loading branch information
tw15egan and kodiakhq[bot] authored Jan 19, 2023
1 parent d620d10 commit 5ebfd52
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -229,8 +229,8 @@ export const Skeleton = () => (
);

export const Playground = (args) => (
<CodeSnippet feedback="Copied to clipboard" {...args}>
{'node -v'}
<CodeSnippet type="single" feedback="Copied to clipboard" {...args}>
{'yarn add @carbon/react'}
</CodeSnippet>
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ $copy-btn-feedback: $background-inverse !default;
}

.#{$prefix}--snippet--disabled .#{$prefix}--snippet-btn--expand:hover,
.#{$prefix}--snippet--disabled .#{$prefix}--copy-btn,
.#{$prefix}--snippet--disabled .#{$prefix}--copy-btn:hover {
background-color: $layer;
color: $text-disabled;
Expand Down

0 comments on commit 5ebfd52

Please sign in to comment.