-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#260 update fieldset styles, template, script and stories
- Loading branch information
rjwaberski
committed
May 22, 2020
1 parent
06b7849
commit 05c3cf2
Showing
5 changed files
with
55 additions
and
10 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 |
---|---|---|
@@ -1,15 +1,18 @@ | ||
<fieldset | ||
class="a-fieldset" | ||
:aria-labelledby="`legend-${id}`" | ||
:disabled="disabled" | ||
> | ||
<legend | ||
:id="`legend-${id}`" | ||
:class="[ | ||
legendClass, | ||
'a-fieldset__legend' | ||
'a-fieldset__legend', | ||
{ 'a-fieldset__legend--hidden': hideLegend } | ||
]" | ||
> | ||
{{ legendText }} | ||
</legend> | ||
<!-- @slot Slot for fieldset content --> | ||
<slot /> | ||
</fieldset> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,26 @@ | ||
@import '../../../assets/styles/_globals.scss'; | ||
|
||
$fieldset__border : none !default; | ||
$fieldset__legend-margin : 0 0 25px !default; | ||
$fieldset__legend-font-size : $font-size-large !default; | ||
$fieldset__legend-line-height: 1.2 !default; | ||
$fieldset__border : none !default; | ||
$fieldset__padding : 0 !default; | ||
$fieldset__margin : 0 !default; | ||
$fieldset__legend-padding : 0 !default; | ||
$fieldset__legend-margin : 0 0 $spacer--semi-medium !default; | ||
$fieldset__legend-font-size : $font-size-large !default; | ||
$fieldset__legend-line-height : $font-line-height !default; | ||
|
||
.a-fieldset { | ||
margin: 0; | ||
padding: 0; | ||
margin: $fieldset__margin; | ||
padding: $fieldset__padding; | ||
border: $fieldset__border; | ||
|
||
&__legend { | ||
margin: $fieldset__legend-margin; | ||
padding: 0; | ||
padding: $fieldset__legend-padding; | ||
font-size: $fieldset__legend-font-size; | ||
line-height: $fieldset__legend-line-height; | ||
|
||
&--hidden { | ||
@include visually-hidden(); | ||
} | ||
} | ||
} |
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