Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for long formLabel #3076

Merged
merged 2 commits into from
Sep 24, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions packages/scss/src/components/formLabel/component.scss
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
@use '@lucca-front/scss/src/commons/utils/a11y';

@mixin component($atRoot: 'without: rule') {
display: block;
position: relative;
color: var(--components-formLabel-color);
display: flex;
font-size: var(--components-formLabel-fontSize);
font-weight: 400;
line-height: var(--components-formLabel-lineHeight);
width: var(--components-formLabel-width);
align-items: flex-end;
padding-right: var(--components-formLabel-paddingRight);
cursor: var(--components-formLabel-cursor);

.lucca-icon {
Expand All @@ -26,7 +27,6 @@
font-weight: 600;
text-rendering: geometricPrecision;
margin-left: var(--pr-t-spacings-25);
top: 0;
}

.formLabel-info {
Expand All @@ -44,11 +44,11 @@
}

.formLabel-counter {
margin-left: auto;
margin-bottom: var(--pr-t-spacings-25);
font-size: var(--sizes-XS-fontSize);
line-height: var(--sizes-XS-lineHeight);
color: var(--palettes-neutral-600);
position: absolute;
right: 0;
top: 0;
}
}
}
1 change: 1 addition & 0 deletions packages/scss/src/components/formLabel/mods.scss
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,5 @@

@mixin counter {
--components-formLabel-width: auto;
--components-formLabel-paddingRight: var(--pr-t-spacings-600);
}
1 change: 1 addition & 0 deletions packages/scss/src/components/formLabel/vars.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
--components-formLabel-color: var(--palettes-neutral-800);
--components-formLabel-help-fontSize: var(--sizes-XS-lineHeight);
--components-formLabel-help-lineHeight: var(--sizes-M-lineHeight);
--components-formLabel-paddingRight: 0;
--components-formLabel-width: fit-content;
--components-formLabel-cursor: default;
}