-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(pie-text-input): DSW-000 component font fixes (#2115)
* fix(pie-divider): DSW-000 divider font-size set to 16px * fix(pie-text-input): DSW-000 font-size for text-input now contains px unit
- Loading branch information
1 parent
f793a63
commit d53513c
Showing
4 changed files
with
60 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@justeattakeaway/pie-text-input": minor | ||
--- | ||
|
||
[Fixed] - font-size for text-input now contains px unit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@justeattakeaway/pie-divider": minor | ||
--- | ||
|
||
[Fixed] - divider font-size set to 16px |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,54 +1,58 @@ | ||
@use '@justeattakeaway/pie-css/scss' as p; | ||
|
||
.c-divider { | ||
--divider-bg-color: var(--dt-color-divider-default); | ||
--divider-width: 100%; | ||
--divider-min-width: 16px; | ||
--divider-height: 1px; | ||
--divider-label-max-width: 90%; | ||
|
||
width: var(--divider-width); | ||
|
||
&, | ||
hr { | ||
margin: 0; | ||
border: 0; | ||
background-color: var(--divider-bg-color); | ||
} | ||
|
||
&:not(.c-divider--labelled) { | ||
height: var(--divider-height); | ||
} | ||
|
||
&.c-divider--labelled { | ||
display: flex; | ||
align-items: center; | ||
text-align: center; | ||
gap: var(--dt-spacing-b); | ||
background-color: transparent; | ||
|
||
.c-divider-label { | ||
max-width: var(--divider-label-max-width); | ||
word-wrap: break-word; | ||
} | ||
--divider-bg-color: var(--dt-color-divider-default); | ||
--divider-width: 100%; | ||
--divider-min-width: 16px; | ||
--divider-height: 1px; | ||
--divider-label-max-width: 90%; | ||
--divider-font-size: #{p.font-size(--dt-font-body-l-size)}; | ||
--divider-line-height: #{p.font-size(--dt-font-body-l-line-height)}; | ||
|
||
width: var(--divider-width); | ||
|
||
&, | ||
hr { | ||
flex-grow: 1; | ||
height: var(--divider-height); | ||
min-width: var(--divider-min-width); | ||
margin: 0; | ||
border: 0; | ||
background-color: var(--divider-bg-color); | ||
} | ||
|
||
&.c-divider--inverse { | ||
color: var(--dt-color-content-inverse); | ||
&:not(.c-divider--labelled) { | ||
height: var(--divider-height); | ||
} | ||
|
||
&.c-divider--labelled { | ||
display: flex; | ||
align-items: center; | ||
text-align: center; | ||
gap: var(--dt-spacing-b); | ||
background-color: transparent; | ||
|
||
.c-divider-label { | ||
font-size: var(--divider-font-size); | ||
line-height: var(--divider-line-height); | ||
max-width: var(--divider-label-max-width); | ||
word-wrap: break-word; | ||
} | ||
|
||
hr { | ||
flex-grow: 1; | ||
height: var(--divider-height); | ||
min-width: var(--divider-min-width); | ||
} | ||
|
||
&.c-divider--inverse { | ||
color: var(--dt-color-content-inverse); | ||
} | ||
} | ||
} | ||
|
||
&.c-divider--inverse { | ||
--divider-bg-color: var(--dt-color-divider-inverse); | ||
} | ||
&.c-divider--inverse { | ||
--divider-bg-color: var(--dt-color-divider-inverse); | ||
} | ||
|
||
&.c-divider--vertical { | ||
--divider-width: 1px; | ||
--divider-height: 100%; | ||
} | ||
&.c-divider--vertical { | ||
--divider-width: 1px; | ||
--divider-height: 100%; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters