Skip to content

Commit bcc41b1

Browse files
im3dabasiaim3dabasiat-hamanomirkamadhusudhand
authored
Components: Fix double border in ItemGroup when last item is focused (#70021)
* fix: Make border transparent for all pseudo events * chore: Add changelog entry * chore: Update snapshots Co-authored-by: im3dabasia <[email protected]> Co-authored-by: t-hamano <[email protected]> Co-authored-by: mirka <[email protected]> Co-authored-by: madhusudhand <[email protected]>
1 parent 46d8ddb commit bcc41b1

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

packages/components/CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
### Bug Fixes
1111

1212
- `ToggleGroupControl`: Fix active background for empty string value ([#69969](https://github.com/WordPress/gutenberg/pull/69969)).
13+
- `ItemGroup`: Fix double border in `ItemGroup` when last item is focused ([#70021](https://github.com/WordPress/gutenberg/pull/70021)).
1314

1415
### Internal
1516

packages/components/src/item-group/styles.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ export const separated = css`
6565
border-bottom: 1px solid ${ CONFIG.surfaceBorderColor };
6666
}
6767
68-
> *:last-of-type > *:not( :focus ) {
68+
> *:last-of-type > * {
6969
border-bottom-color: transparent;
7070
}
7171
`;

packages/components/src/item-group/test/__snapshots__/index.js.snap

+1-1
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ Snapshot Diff:
115115
<div>
116116
<div
117117
- class="components-item-group css-1iattls-PolymorphicDiv-rounded e19lxcc00"
118-
+ class="components-item-group css-zgfros-PolymorphicDiv-separated-rounded e19lxcc00"
118+
+ class="components-item-group css-1hvp0tq-PolymorphicDiv-separated-rounded e19lxcc00"
119119
data-wp-c16t="true"
120120
data-wp-component="ItemGroup"
121121
role="list"

0 commit comments

Comments
 (0)