From 71b307117463946b4715c620907848981fbb6f9c Mon Sep 17 00:00:00 2001 From: Inna Atanasova Date: Wed, 18 Sep 2024 10:05:52 -0400 Subject: [PATCH] fix(styles): update examples using Rating Indicator [ci visual] --- packages/styles/src/facet.scss | 1 + packages/styles/src/rating-indicator.scss | 6 +- .../action-sheet-mobile.example.html | 1 + .../card/extended-header.example.html | 57 ++-- .../stories/Dev/facets/combined.example.html | 54 ++-- .../stories/Dev/facets/facets.stories.js | 11 - .../Dev/facets/object-page.example.html | 56 ++-- .../Dev/facets/rating-indicator.example.html | 23 -- .../dynamic-page/with-facets.example.html | 56 ++-- .../tests/__snapshots__/styles.test.ts.snap | 251 +++++++++++------- packages/theming-preview/src/icon.html | 163 ++++++++---- 11 files changed, 410 insertions(+), 269 deletions(-) delete mode 100644 packages/styles/stories/Dev/facets/rating-indicator.example.html diff --git a/packages/styles/src/facet.scss b/packages/styles/src/facet.scss index 52465d32f2..eb980608b6 100644 --- a/packages/styles/src/facet.scss +++ b/packages/styles/src/facet.scss @@ -46,6 +46,7 @@ $block: #{$fd-namespace}-facet; .#{$block}__container { flex-direction: column; + margin-block: 0; } .#{$block}__rating-container { diff --git a/packages/styles/src/rating-indicator.scss b/packages/styles/src/rating-indicator.scss index 8652eef91c..ed0968e623 100644 --- a/packages/styles/src/rating-indicator.scss +++ b/packages/styles/src/rating-indicator.scss @@ -66,7 +66,7 @@ $block: #{$fd-namespace}-rating-indicator; &__list { @include fd-reset(); - + @include fd-inline-flex-vertical-center() { gap: var(--ratingIndicator_Item_Spacing); }; @@ -94,11 +94,11 @@ $block: #{$fd-namespace}-rating-indicator; position: absolute; &:first-child { - clip-path: inset(0 50% 0 0); + clip-path: inset(0 48% 0 0); left: 0; @include fd-rtl() { - clip-path: inset(0 0 0 50%); + clip-path: inset(0 0 0 48%); left: auto; right: 0; } diff --git a/packages/styles/stories/Components/action-sheet/action-sheet-mobile.example.html b/packages/styles/stories/Components/action-sheet/action-sheet-mobile.example.html index 11d1c52683..6a5bfb00bf 100644 --- a/packages/styles/stories/Components/action-sheet/action-sheet-mobile.example.html +++ b/packages/styles/stories/Components/action-sheet/action-sheet-mobile.example.html @@ -1,5 +1,6 @@