Skip to content

Commit

Permalink
Merge pull request #5133 from nextcloud-libraries/fix/5132/nc-field--…
Browse files Browse the repository at this point in the history
…label-position

fix(fields): adjust label line-height
  • Loading branch information
JuliaKirschenheuter committed Jan 25, 2024
2 parents 7fdd4e0 + 33ce520 commit 4ca8762
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/components/NcInputField/NcInputField.vue
Original file line number Diff line number Diff line change
Expand Up @@ -468,6 +468,7 @@ export default {
&__input:focus + &__label,
&__input:not(:placeholder-shown) + &__label {
inset-block-start: -10px;
line-height: 1.5; // minimum allowed line height for accessibility
font-size: 13px; // minimum allowed font size for accessibility
font-weight: 500;
border-radius: var(--default-grid-baseline) var(--default-grid-baseline) 0 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -871,6 +871,7 @@ export default {
&__input:focus + &__label,
&__input:not(&__input--empty) + &__label {
inset-block-start: -10px;
line-height: 1.5; // minimum allowed line height for accessibility
font-size: 13px; // minimum allowed font size for accessibility
font-weight: 500;
border-radius: var(--default-grid-baseline) var(--default-grid-baseline) 0 0;
Expand Down
1 change: 1 addition & 0 deletions src/components/NcTextArea/NcTextArea.vue
Original file line number Diff line number Diff line change
Expand Up @@ -396,6 +396,7 @@ export default {
&__input:focus + &__label,
&__input:not(:placeholder-shown) + &__label {
inset-block-start: -10px;
line-height: 1.5; // minimum allowed line height for accessibility
font-size: 13px; // minimum allowed font size for accessibility
font-weight: 500;
color: var(--color-main-text);
Expand Down

0 comments on commit 4ca8762

Please sign in to comment.