Skip to content

Commit 1482625

Browse files
committed
fixed dropdown toggle styles
1 parent c2acf81 commit 1482625

File tree

2 files changed

+14
-4
lines changed

2 files changed

+14
-4
lines changed

packages/components/src/components/hds/advanced-table/th-resize-handle.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ export default class HdsAdvancedTableThResizeHandle extends Component<HdsAdvance
9595
return;
9696
}
9797

98-
return `${tableHeight - TABLE_BORDER_WIDTH * 4}px`;
98+
return `${tableHeight - TABLE_BORDER_WIDTH * 2}px`;
9999
}
100100

101101
get classNames(): string {

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

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
//
99
//
1010

11+
@use "../mixins/button" as *;
1112
@use "../mixins/focus-ring" as *;
1213

1314
$hds-advanced-table-border-radius: var(--token-border-radius-medium);
@@ -275,14 +276,23 @@ $hds-advanced-table-cell-padding-tall: 22px 16px 21px 16px; // the 1px differenc
275276
background-color: var(--token-color-surface-interactive);
276277
border-color: var(--token-color-border-strong);
277278
box-shadow: var(--token-elevation-low-box-shadow);
278-
cursor: pointer;
279279
}
280280

281-
&:focus::before {
281+
&:focus,
282+
&.mock-focus {
282283
border-color: transparent;
284+
285+
&::before {
286+
top: 0;
287+
right: 0;
288+
bottom: 0;
289+
left: 0;
290+
border: none;
291+
border-radius: 3px;
292+
}
283293
}
284294

285-
@include hds-focus-ring-basic();
295+
@include hds-focus-ring-with-pseudo-element($radius: inherit);
286296
}
287297

288298
.hds-advanced-table__th-button {

0 commit comments

Comments
 (0)