Skip to content

Commit 9ee212b

Browse files
committed
tokenize chip padding, so it can be easily overridden
1 parent 4331e86 commit 9ee212b

File tree

4 files changed

+7
-8
lines changed

4 files changed

+7
-8
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
- **Toggle**: tokenize toggle style, so it can be easily overridden
66
- **Buttons**: add specific button border tokens for icon buttons
7+
- **Chips**: tokenize chip padding, so it can be easily overridden
78

89
### Bug fixes
910

projects/demo/src/app/demo/demo-page/demo-page.component.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ pa-demo-page {
3232

3333
dl {
3434
dt {
35-
font-weight: $font-weight-semi-bold;
35+
font-weight: $font-weight-regular;
3636
}
3737

3838
dd {

projects/pastanaga-angular/src/styles/components/_chips.scss

+3-7
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,11 @@ $chip-max-width-medium: rhythm(56);
99
border: $border-chip;
1010
border-radius: $border-radius-chip;
1111
display: inline-flex;
12+
gap: rhythm(1);
1213
height: rhythm(4);
1314
max-width: $chip-max-width-small;
1415
overflow: hidden;
15-
padding: rhythm(0.5) rhythm(1.5);
16+
padding: $padding-chip;
1617

1718
&.pa-with-avatar {
1819
padding-left: rhythm(0.5);
@@ -41,13 +42,8 @@ $chip-max-width-medium: rhythm(56);
4142
border: $border-chip-disabled;
4243
}
4344

44-
pa-avatar,
45-
.pa-chip-icon {
46-
margin-right: rhythm(1);
47-
}
48-
4945
pa-button {
50-
margin-left: rhythm(1);
46+
display: flex;
5147
}
5248
}
5349
.pa-chip-content-wrapper {

projects/pastanaga-angular/src/styles/theme/_chips.tokens.scss

+2
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,5 @@ $border-chip-disabled: 1px solid transparent !default;
1414
$border-chip-selected: 1px solid transparent !default;
1515

1616
$font-size-chip: font-size(s) !default;
17+
18+
$padding-chip: rhythm(0.5) rhythm(1.5) !default;

0 commit comments

Comments
 (0)