Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: overflow menu bg color on color tokens page #3643

Merged
Merged
Show file tree
Hide file tree
Changes from 2 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: 1 addition & 1 deletion src/components/ColorTokenTable/ColorTokenTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ export default class ColorTokenTable extends React.Component {
value[currentTheme].hex === '#ffffff' && '1px solid #BEBEBE',
}}
/>
<OverflowMenu floatingMenu={false} flipped>
<OverflowMenu floatingMenu={false} flipped align="top-right">
<CopyToClipboard text={value[currentTheme].hex}>
<OverflowMenuItem primaryFocus itemText="Copy hex" />
</CopyToClipboard>
Expand Down
4 changes: 4 additions & 0 deletions src/components/ColorTokenTable/color-token-table.scss
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,10 @@
margin-top: -$spacing-03;
}

.color-token-value .cds--overflow-menu.cds--overflow-menu--open {
background-color: $layer-02;
}

.color-token-value .cds--overflow-menu-options {
left: -9.25rem;
top: $spacing-07;
Expand Down
Loading