Skip to content

Commit

Permalink
refactor: Simplify hyphenation imports in multiple components
Browse files Browse the repository at this point in the history
  • Loading branch information
dlnr committed Dec 10, 2024
1 parent a437c6d commit 1f1f12a
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions packages/css/src/components/blockquote/blockquote.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Copyright Gemeente Amsterdam
*/

@use "../../common/hyphenation";
@use "../../common/hyphenation" as *;
@use "../../common/text-rendering" as *;

@mixin reset-blockquote {
Expand All @@ -21,7 +21,7 @@
line-height: var(--ams-blockquote-line-height);
quotes: "" "";

@include hyphenation.hyphenation;
@include hyphenation;
@include text-rendering;
@include reset-blockquote;

Expand Down
4 changes: 2 additions & 2 deletions packages/css/src/components/field-set/field-set.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Copyright Gemeente Amsterdam
*/

@use "../../common/hyphenation";
@use "../../common/hyphenation" as *;
@use "../../common/text-rendering" as *;

@mixin reset-fieldset {
Expand Down Expand Up @@ -46,7 +46,7 @@
--ams-field-set-legend-margin-block-end
); /* Because of a bug in Chrome we can’t use display grid or flex for this gap */

@include hyphenation.hyphenation;
@include hyphenation;
@include text-rendering;
@include reset-legend;
}
4 changes: 2 additions & 2 deletions packages/css/src/components/heading/heading.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Copyright Gemeente Amsterdam
*/

@use "../../common/hyphenation";
@use "../../common/hyphenation" as *;
@use "../../common/text-rendering" as *;

@mixin reset-hx {
Expand All @@ -18,7 +18,7 @@
font-family: var(--ams-heading-font-family);
font-weight: var(--ams-heading-font-weight);

@include hyphenation.hyphenation;
@include hyphenation;
@include text-rendering;
@include reset-hx;
}
Expand Down
4 changes: 2 additions & 2 deletions packages/css/src/components/label/label.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Copyright Gemeente Amsterdam
*/

@use "../../common/hyphenation";
@use "../../common/hyphenation" as *;
@use "../../common/text-rendering" as *;

.ams-label {
Expand All @@ -13,6 +13,6 @@
font-weight: var(--ams-label-font-weight);
line-height: var(--ams-label-line-height);

@include hyphenation.hyphenation;
@include hyphenation;
@include text-rendering;
}
4 changes: 2 additions & 2 deletions packages/css/src/components/link-list/link-list.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Copyright Gemeente Amsterdam
*/

@use "../../common/hyphenation";
@use "../../common/hyphenation" as *;
@use "../../common/text-rendering" as *;

@mixin reset-ul {
Expand Down Expand Up @@ -50,7 +50,7 @@
font-size: var(--ams-link-list-link-large-font-size);
line-height: var(--ams-link-list-link-large-line-height);

@include hyphenation.hyphenation;
@include hyphenation;
}

.ams-link-list__link--contrast-color {
Expand Down
4 changes: 2 additions & 2 deletions packages/css/src/components/page-heading/page-heading.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Copyright Gemeente Amsterdam
*/

@use "../../common/hyphenation";
@use "../../common/hyphenation" as *;
@use "../../common/text-rendering" as *;

@mixin reset-h1 {
Expand All @@ -20,7 +20,7 @@
font-weight: var(--ams-page-heading-font-weight);
line-height: var(--ams-page-heading-line-height);

@include hyphenation.hyphenation;
@include hyphenation;
@include text-rendering;
@include reset-h1;
}
Expand Down
4 changes: 2 additions & 2 deletions packages/css/src/components/top-task-link/top-task-link.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Copyright Gemeente Amsterdam
*/

@use "../../common/hyphenation";
@use "../../common/hyphenation" as *;
@use "../../common/text-rendering" as *;

.ams-top-task-link {
Expand All @@ -26,7 +26,7 @@
text-decoration-thickness: var(--ams-top-task-link-label-text-decoration-thickness);
text-underline-offset: var(--ams-top-task-link-label-text-underline-offset);

@include hyphenation.hyphenation;
@include hyphenation;
@include text-rendering;
}

Expand Down

0 comments on commit 1f1f12a

Please sign in to comment.