Skip to content

Commit

Permalink
fix: overflow menu bg color on color tokens page (#3643)
Browse files Browse the repository at this point in the history
* fix: overflow menu bg color on color tokens page

* fix: tooltip alignment

* fix: tooltip alignment

* fix: typo

---------

Co-authored-by: Francine Lucca <[email protected]>
  • Loading branch information
alisonjoseph and francinelucca authored Jul 14, 2023
1 parent cd86c32 commit a0d9403
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
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
6 changes: 5 additions & 1 deletion src/components/ColorTokenTable/color-token-table.scss
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,15 @@
justify-content: space-between;
}

.color-token-value .cds--overflow-menu {
.color-token-value .cds--overflow-menu__wrapper {
margin-left: $spacing-03;
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

1 comment on commit a0d9403

@vercel
Copy link

@vercel vercel bot commented on a0d9403 Jul 14, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.