-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #387 from funidata/DS-318
[BodyText]: Rename 'size' Input to 'variant', remove 'color' Input
- Loading branch information
Showing
73 changed files
with
96 additions
and
113 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
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
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
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
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
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
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
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
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
31 changes: 31 additions & 0 deletions
31
ngx-fudis/projects/ngx-fudis/src/lib/components/typography/body-text/body-text-theme.scss
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,31 @@ | ||
@use "../../../foundations/spacing/tokens.scss" as spacing; | ||
|
||
fudis-body-text { | ||
/** | ||
* Add spacing between multiple following Body Text elements. | ||
* Body Text does not have bottom margin if it does not have other Body Text element underneath. | ||
*/ | ||
&:has(+ fudis-body-text) { | ||
margin-bottom: spacing.$spacing-xs; | ||
} | ||
|
||
/* stylelint-disable-next-line scss/selector-no-redundant-nesting-selector */ | ||
& fudis-link { | ||
display: inline-block; | ||
} | ||
|
||
/* stylelint-disable-next-line selector-no-qualifying-type */ | ||
&.fudis-body-text-host { | ||
display: block; | ||
} | ||
} | ||
|
||
/** | ||
* Remove spacing between multiple following Body Text elements directly under Grid element. | ||
* Grid already defines a gap between its children elements. | ||
*/ | ||
.fudis-grid { | ||
> fudis-body-text:has(+ fudis-body-text) { | ||
margin-bottom: spacing.$spacing-none; | ||
} | ||
} |
6 changes: 1 addition & 5 deletions
6
...fudis/projects/ngx-fudis/src/lib/components/typography/body-text/body-text.component.html
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,7 +1,3 @@ | ||
<p | ||
[id]="_id" | ||
class="fudis-body-text fudis-body-text__{{ color }} fudis-body-text__{{ | ||
size | ||
}} fudis-body-text__{{ align }}" | ||
<p [id]="_id" class="fudis-body-text fudis-body-text__{{ variant }} fudis-body-text__{{ align }}" | ||
><ng-content | ||
/></p> |
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
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
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
Oops, something went wrong.