Skip to content

Commit

Permalink
feat(fuselage): update InputBox and Field typography (#1442)
Browse files Browse the repository at this point in the history
Co-authored-by: Júlia Jaeger Foresti <60678893+juliajforesti@users.noreply.github.com>
  • Loading branch information
rique223 and juliajforesti authored Sep 4, 2024
1 parent b1dda27 commit 1087ee8
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 8 deletions.
5 changes: 5 additions & 0 deletions .changeset/sweet-sheep-film.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@rocket.chat/fuselage": minor
---

feat(fuselage): update `InputBox` and `Field` typography
8 changes: 4 additions & 4 deletions packages/fuselage/src/components/Field/Field.styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
width: 100%;

&__label {
@include typography.use-font-scale(p2b);
@include typography.use-font-scale(p2m);
align-self: flex-start;

margin-block: lengths.margin(2);
Expand Down Expand Up @@ -41,23 +41,23 @@
}

&__hint {
@include typography.use-font-scale(p2);
@include typography.use-font-scale(c1);
margin-block: lengths.margin(2);

color: colors.font(secondary-info);
@extend %--with-inline-elements;
}

&__error {
@include typography.use-font-scale(p2);
@include typography.use-font-scale(c1);
margin-block: lengths.margin(2);

color: colors.font(danger);
@extend %--with-inline-elements;
}

&__link {
@include typography.use-font-scale(p2);
@include typography.use-font-scale(c1);
margin-block: lengths.margin(2);

color: colors.font(info);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@

background-color: transparent;

@include typography.use-font-scale(p2);
@include typography.use-font-scale(p2m);
@include typography.use-text-ellipsis;

&--type-textarea {
Expand Down Expand Up @@ -277,15 +277,15 @@
@include typography.use-text-ellipsis;
white-space: nowrap;

@include typography.use-font-scale(p2);
@include typography.use-font-scale(p2m);
color: #{$input-colors-placeholder-color};
}

.rcx-input-box__option {
@include typography.use-text-ellipsis;
white-space: nowrap;

@include typography.use-font-scale(p2);
@include typography.use-font-scale(p2m);
color: #{$input-colors-color};
}

Expand All @@ -309,6 +309,6 @@
border-radius: theme('input-border-radius', lengths.border-radius(medium));
background-color: #{$input-colors-background-color};

@include typography.use-font-scale(p2);
@include typography.use-font-scale(p2m);
@include typography.use-text-ellipsis;
}

0 comments on commit 1087ee8

Please sign in to comment.