From fa819efd06ffba4c928bda5668f120c75300fb14 Mon Sep 17 00:00:00 2001 From: juliajforesti Date: Tue, 31 Oct 2023 14:13:22 -0300 Subject: [PATCH 1/4] fix: add `Callout` background color --- .../fuselage/src/components/Callout/Callout.styles.scss | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/fuselage/src/components/Callout/Callout.styles.scss b/packages/fuselage/src/components/Callout/Callout.styles.scss index ac91b931af..dc143b3a27 100644 --- a/packages/fuselage/src/components/Callout/Callout.styles.scss +++ b/packages/fuselage/src/components/Callout/Callout.styles.scss @@ -2,6 +2,10 @@ @use '../../styles/lengths.scss'; @use '../../styles/typography.scss'; +$callout-background-color: theme( + 'callout-background-color', + colors.surface(light) +); $callout-default-color: theme( 'callout-default-color', colors.font(secondary-info) @@ -34,6 +38,8 @@ $callout-text-color: theme('callout-text-color', colors.font(default)); border-radius: theme('callout-border-radius', lengths.border-radius(medium)); + background-color: $callout-background-color; + &--info { border-color: $callout-info-color; From bf805110c307f19bd5a2616e655ab80fb6d3577e Mon Sep 17 00:00:00 2001 From: juliajforesti Date: Tue, 31 Oct 2023 14:13:35 -0300 Subject: [PATCH 2/4] chore: changeset --- .changeset/quiet-pigs-peel.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/quiet-pigs-peel.md diff --git a/.changeset/quiet-pigs-peel.md b/.changeset/quiet-pigs-peel.md new file mode 100644 index 0000000000..8bb7bb6729 --- /dev/null +++ b/.changeset/quiet-pigs-peel.md @@ -0,0 +1,5 @@ +--- +"@rocket.chat/fuselage": patch +--- + +fix(fuselage): add `Callout` missing background-color From 5a79b4f75db6837ea6a8729dd23aee35e2ad02e9 Mon Sep 17 00:00:00 2001 From: juliajforesti Date: Tue, 31 Oct 2023 14:19:03 -0300 Subject: [PATCH 3/4] fix: undefined class --- packages/fuselage/src/components/Callout/Callout.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/fuselage/src/components/Callout/Callout.tsx b/packages/fuselage/src/components/Callout/Callout.tsx index 76cb3207df..034fc4472f 100644 --- a/packages/fuselage/src/components/Callout/Callout.tsx +++ b/packages/fuselage/src/components/Callout/Callout.tsx @@ -29,9 +29,7 @@ export const Callout = ({ return ( Date: Tue, 31 Oct 2023 14:35:37 -0300 Subject: [PATCH 4/4] chore: update snapshot --- .../Callout/__snapshots__/Callout.spec.tsx.snap | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/packages/fuselage/src/components/Callout/__snapshots__/Callout.spec.tsx.snap b/packages/fuselage/src/components/Callout/__snapshots__/Callout.spec.tsx.snap index c181237a3e..ac7449ea89 100644 --- a/packages/fuselage/src/components/Callout/__snapshots__/Callout.spec.tsx.snap +++ b/packages/fuselage/src/components/Callout/__snapshots__/Callout.spec.tsx.snap @@ -4,7 +4,7 @@ exports[`[CheckBox Rendering] renders CustomIcon without crashing 1`] = `