Skip to content

Commit 6ab7982

Browse files
authored
fix: subcategory title (#5786)
1 parent b9f0d1e commit 6ab7982

File tree

4 files changed

+13
-7
lines changed

4 files changed

+13
-7
lines changed

.changeset/ready-readers-brake.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@ultraviolet/plus": patch
3+
---
4+
5+
`OrderSummary`: fix sub-category title size

packages/plus/src/components/OrderSummary/ScrollableContent.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ const SubCategory = ({ subCategory }: { subCategory: SubCategoryType }) => {
127127
as="span"
128128
prominence="strong"
129129
sentiment="neutral"
130-
variant="bodyStrong"
130+
variant="bodySmallStrong"
131131
>
132132
{subCategory.title}
133133
</Text>

packages/plus/src/components/OrderSummary/__stories__/Playground.stories.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ Playground.parameters = {
2828
- \`numberInputUnit\`: unit of the number input (*string*)
2929
- \`numberInputControls\`: set to \`true\` to display controls for the number input (*boolean*)
3030
- \`onChangeInput\`: function to call when the number input changes (*function*)
31+
- \`additionalInfo\`: data to add right next to the subcategory title (*ReactNode*)
3132
3233
3334
The price of the category is computed automatically. For a category without sub-category, set the price like so: \`{ category: "categoryName", subCategories: {[ price: 10, hidePrice: true ]}}\`

packages/plus/src/components/OrderSummary/__tests__/__snapshots__/index.test.tsx.snap

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ exports[`orderSummary > should work with additionalInfo 1`] = `
223223
class="uv_toi52u0 uv_toi52u3d uv_toi52u2j uv_toi52u7d uv_toi52u7 uv_toi52u5d"
224224
>
225225
<span
226-
class="uv_m4c9ow0 uv_m4c9ow2 uv_m4c9ow4 uv_m4c9ow6 uv_m4c9ow8 uv_m4c9owb uv_m4c9owj uv_m4c9owq uv_m4c9ow1b uv_m4c9ow21 uv_m4c9ow3d"
226+
class="uv_m4c9ow0 uv_m4c9ow2 uv_m4c9ow4 uv_m4c9ow6 uv_m4c9ow8 uv_m4c9owb uv_m4c9owj uv_m4c9owo uv_m4c9ow1b uv_m4c9ow21 uv_m4c9ow3d"
227227
>
228228
SubCategory
229229
</span>
@@ -910,7 +910,7 @@ exports[`orderSummary > should work with children 1`] = `
910910
class="uv_toi52u0 uv_toi52u3d uv_toi52u2j uv_toi52u7d uv_toi52u7 uv_toi52u5d"
911911
>
912912
<span
913-
class="uv_m4c9ow0 uv_m4c9ow2 uv_m4c9ow4 uv_m4c9ow6 uv_m4c9ow8 uv_m4c9owb uv_m4c9owj uv_m4c9owq uv_m4c9ow1b uv_m4c9ow21 uv_m4c9ow3d"
913+
class="uv_m4c9ow0 uv_m4c9ow2 uv_m4c9ow4 uv_m4c9ow6 uv_m4c9ow8 uv_m4c9owb uv_m4c9owj uv_m4c9owo uv_m4c9ow1b uv_m4c9ow21 uv_m4c9ow3d"
914914
>
915915
SubCategory
916916
</span>
@@ -1468,7 +1468,7 @@ exports[`orderSummary > should work with default props 1`] = `
14681468
class="uv_toi52u0 uv_toi52u3d uv_toi52u2j uv_toi52u7d uv_toi52u7 uv_toi52u5d"
14691469
>
14701470
<span
1471-
class="uv_m4c9ow0 uv_m4c9ow2 uv_m4c9ow4 uv_m4c9ow6 uv_m4c9ow8 uv_m4c9owb uv_m4c9owj uv_m4c9owq uv_m4c9ow1b uv_m4c9ow21 uv_m4c9ow3d"
1471+
class="uv_m4c9ow0 uv_m4c9ow2 uv_m4c9ow4 uv_m4c9ow6 uv_m4c9ow8 uv_m4c9owb uv_m4c9owj uv_m4c9owo uv_m4c9ow1b uv_m4c9ow21 uv_m4c9ow3d"
14721472
>
14731473
SubCategory
14741474
</span>
@@ -2479,7 +2479,7 @@ exports[`orderSummary > should work with footer 1`] = `
24792479
class="uv_toi52u0 uv_toi52u3d uv_toi52u2j uv_toi52u7d uv_toi52u7 uv_toi52u5d"
24802480
>
24812481
<span
2482-
class="uv_m4c9ow0 uv_m4c9ow2 uv_m4c9ow4 uv_m4c9ow6 uv_m4c9ow8 uv_m4c9owb uv_m4c9owj uv_m4c9owq uv_m4c9ow1b uv_m4c9ow21 uv_m4c9ow3d"
2482+
class="uv_m4c9ow0 uv_m4c9ow2 uv_m4c9ow4 uv_m4c9ow6 uv_m4c9ow8 uv_m4c9owb uv_m4c9owj uv_m4c9owo uv_m4c9ow1b uv_m4c9ow21 uv_m4c9ow3d"
24832483
>
24842484
SubCategory
24852485
</span>
@@ -3807,7 +3807,7 @@ exports[`orderSummary > should work with totalPriceInfo 1`] = `
38073807
class="uv_toi52u0 uv_toi52u3d uv_toi52u2j uv_toi52u7d uv_toi52u7 uv_toi52u5d"
38083808
>
38093809
<span
3810-
class="uv_m4c9ow0 uv_m4c9ow2 uv_m4c9ow4 uv_m4c9ow6 uv_m4c9ow8 uv_m4c9owb uv_m4c9owj uv_m4c9owq uv_m4c9ow1b uv_m4c9ow21 uv_m4c9ow3d"
3810+
class="uv_m4c9ow0 uv_m4c9ow2 uv_m4c9ow4 uv_m4c9ow6 uv_m4c9ow8 uv_m4c9owb uv_m4c9owj uv_m4c9owo uv_m4c9ow1b uv_m4c9ow21 uv_m4c9ow3d"
38113811
>
38123812
SubCategory
38133813
</span>
@@ -4378,7 +4378,7 @@ exports[`orderSummary > should work without unitInput 1`] = `
43784378
class="uv_toi52u0 uv_toi52u3d uv_toi52u2j uv_toi52u7d uv_toi52u7 uv_toi52u5d"
43794379
>
43804380
<span
4381-
class="uv_m4c9ow0 uv_m4c9ow2 uv_m4c9ow4 uv_m4c9ow6 uv_m4c9ow8 uv_m4c9owb uv_m4c9owj uv_m4c9owq uv_m4c9ow1b uv_m4c9ow21 uv_m4c9ow3d"
4381+
class="uv_m4c9ow0 uv_m4c9ow2 uv_m4c9ow4 uv_m4c9ow6 uv_m4c9ow8 uv_m4c9owb uv_m4c9owj uv_m4c9owo uv_m4c9ow1b uv_m4c9ow21 uv_m4c9ow3d"
43824382
>
43834383
SubCategory
43844384
</span>

0 commit comments

Comments
 (0)