Skip to content

Commit 1276c50

Browse files
committed
styling context menu
1 parent ca01ea3 commit 1276c50

File tree

2 files changed

+27
-8
lines changed

2 files changed

+27
-8
lines changed

packages/components/src/components/hds/advanced-table/th-context-menu.hbs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,7 @@
33
SPDX-License-Identifier: MPL-2.0
44
}}
55
<Hds::Dropdown class={{this.classNames}} ...attributes as |D|>
6-
<D.ToggleIcon
7-
class="hds-advanced-table__th-button"
8-
@icon="more-vertical"
9-
@text="Context menu"
10-
@hasChevron={{false}}
11-
@size="small"
12-
/>
6+
<D.ToggleIcon @icon="more-vertical" @text="Context menu" @hasChevron={{false}} @size="small" />
137

148
{{#each this._options as |option|}}
159
<D.Interactive

packages/components/src/styles/components/advanced-table.scss

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,8 +259,33 @@ $hds-advanced-table-cell-padding-tall: 22px 16px 21px 16px; // the 1px differenc
259259
min-width: 0;
260260
}
261261

262-
.hds-advanced-table__th-button,
263262
.hds-advanced-table__th-context-menu .hds-dropdown-toggle-icon {
263+
width: 24px;
264+
height: 24px;
265+
margin: -2px 0;
266+
padding: 0;
267+
color: var(--token-color-foreground-faint);
268+
background-color: transparent;
269+
border: 1px solid transparent;
270+
border-radius: 3px;
271+
272+
&:hover,
273+
&.mock-hover {
274+
color: var(--token-color-foreground-primary);
275+
background-color: var(--token-color-surface-interactive);
276+
border-color: var(--token-color-border-strong);
277+
box-shadow: var(--token-elevation-low-box-shadow);
278+
cursor: pointer;
279+
}
280+
281+
&:focus::before {
282+
border-color: transparent;
283+
}
284+
285+
@include hds-focus-ring-basic();
286+
}
287+
288+
.hds-advanced-table__th-button {
264289
display: flex;
265290
flex: none;
266291
align-items: center;

0 commit comments

Comments
 (0)