-
Notifications
You must be signed in to change notification settings - Fork 271
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(ui5-form): add new
emptySpan
property (#10194)
Adds new emptySpan property that provides additional layout flexibility by defining empty space at the form item’s end. Fixes: #9963
- Loading branch information
Showing
15 changed files
with
1,104 additions
and
327 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
/* | ||
* By default, | ||
* - in M, L ans XL sizes the Form's labels take 4 cells out 12 of the whole width, e.g 4:8:0 | ||
* - in S size, it the Form's labels take the whole width 12/12 cells, e.g the label and the input are displayed vertically. | ||
* | ||
* The ratio can be changed via the labelSpan and the emptySpan properties. | ||
*/ | ||
|
||
@container (max-width: 600px) { | ||
.ui5-form-item, | ||
.ui5-form-group { | ||
--ui5-form-item-layout: var(--ui5-form-item-layout-S); | ||
} | ||
|
||
:host([label-span-s="12"]) .ui5-form-item, | ||
:host([label-span-s="12"]) .ui5-form-group { | ||
--ui5-form-item-label-justify: var(--ui5-form-item-label-justify-span12); | ||
--ui5-form-item-label-padding: var(--ui5-form-item-label-padding-span12); | ||
} | ||
} | ||
|
||
@container (width > 600px) and (width <= 1024px) { | ||
.ui5-form-item, | ||
.ui5-form-group { | ||
--ui5-form-item-layout: var(--ui5-form-item-layout-M); | ||
} | ||
|
||
:host([label-span-m="12"]) .ui5-form-item, | ||
:host([label-span-m="12"]) .ui5-form-group { | ||
--ui5-form-item-label-justify: var(--ui5-form-item-label-justify-span12); | ||
--ui5-form-item-label-padding: var(--ui5-form-item-label-padding-span12); | ||
} | ||
} | ||
|
||
@container (width > 1024px) and (width <= 1440px) { | ||
.ui5-form-item, | ||
.ui5-form-group { | ||
--ui5-form-item-layout: var(--ui5-form-item-layout-L); | ||
} | ||
|
||
:host([label-span-l="12"]) .ui5-form-item, | ||
:host([label-span-l="12"]) .ui5-form-group { | ||
--ui5-form-item-label-justify: var(--ui5-form-item-label-justify-span12); | ||
--ui5-form-item-label-padding: var(--ui5-form-item-label-padding-span12); | ||
} | ||
} | ||
|
||
@container (min-width: 1441px) { | ||
.ui5-form-item, | ||
.ui5-form-group { | ||
--ui5-form-item-layout: var(--ui5-form-item-layout-XL); | ||
} | ||
|
||
:host([label-span-xl="12"]) .ui5-form-item, | ||
:host([label-span-xl="12"]) .ui5-form-group { | ||
--ui5-form-item-label-justify: var(--ui5-form-item-label-justify-span12); | ||
--ui5-form-item-label-padding: var(--ui5-form-item-label-padding-span12); | ||
} | ||
} |
Oops, something went wrong.