Skip to content

Commit 59077e7

Browse files
authored
improve tag spacing; fixes #677 (#965)
* improve tag spacing; fixes #677 * use spacing token * use em
1 parent 62ddf13 commit 59077e7

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

docs/docs/resources/changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ During the alpha period, things might break! We take breaking changes very serio
2727
- Added a new Blog & News pattern category
2828
- Added a new free component: `<wa-scroller>` (#1 of 14 per stretch goals)
2929
- Added support for Duotone Thin, Light, and Regular styles and the Sharp Duotone family of styles to `<wa-icon>`
30+
- Added a default `gap` to `<wa-tag>` for better default spacing when used with icons [issue:677]
3031
- Fixed a bug that caused `<wa-radio-group>` to have an undesired margin below it
3132
- Fixed a bug in the Matter theme that prevented clicks on form control labels to not focus the control
3233
- Fixed a bug in `<wa-select>` that caused incorrect spacing of icons

src/components/tag/tag.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
--size-l: var(--wa-font-size-m);
55

66
display: inline-flex;
7+
gap: 0.33em;
78
border-radius: var(--wa-border-radius-m);
89
align-items: center;
910
background-color: var(--background-color, var(--wa-color-fill-quiet));
@@ -41,7 +42,6 @@
4142
/*
4243
* Pill modifier
4344
*/
44-
4545
:host([pill]) {
4646
border-radius: var(--wa-border-radius-pill);
4747
}

0 commit comments

Comments
 (0)