Skip to content

Commit

Permalink
fix(FieldBlock): remove max label width when width stretch
Browse files Browse the repository at this point in the history
  • Loading branch information
langz committed Dec 13, 2024
1 parent e7ad727 commit 1e9a770
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export const Widths = () => {
<TestElement>Contents</TestElement>
</FieldBlock>
<FieldBlock
label="Stretch (affects outer block element)"
label="Stretch (affects outer block element) this label is long to validate that this stretches full width as well when width property has value stretch."
width="stretch"
>
<TestElement>Contents</TestElement>
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ fieldset.dnb-forms-field-block {
&--width {
&-stretch {
flex-grow: 1;
.dnb-forms-field-block__label.dnb-form-label {
max-width: auto;
label.dnb-form-label {
max-width: none;
}
}
@include allAbove(x-small) {
Expand Down

0 comments on commit 1e9a770

Please sign in to comment.