Skip to content

Commit 76c15ee

Browse files
committed
Update extraneous h3 element in Filters stories
1 parent aabff9e commit 76c15ee

File tree

1 file changed

+24
-40
lines changed

1 file changed

+24
-40
lines changed

polaris-react/src/components/Filters/Filters.stories.tsx

Lines changed: 24 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -187,11 +187,9 @@ export function WithAResourceList() {
187187
media={media}
188188
accessibilityLabel={`View details for ${name}`}
189189
>
190-
<h3>
191-
<Text variant="bodyMd" fontWeight="bold" as="span">
192-
{name}
193-
</Text>
194-
</h3>
190+
<Text as="h3" variant="bodyMd" fontWeight="bold">
191+
{name}
192+
</Text>
195193
<div>{location}</div>
196194
</ResourceList.Item>
197195
);
@@ -500,11 +498,9 @@ export function WithChildrenContent() {
500498
media={media}
501499
accessibilityLabel={`View details for ${name}`}
502500
>
503-
<h3>
504-
<Text variant="bodyMd" fontWeight="bold" as="span">
505-
{name}
506-
</Text>
507-
</h3>
501+
<Text as="h3" variant="bodyMd" fontWeight="bold">
502+
{name}
503+
</Text>
508504
<div>{location}</div>
509505
</ResourceList.Item>
510506
);
@@ -629,11 +625,9 @@ export function Disabled() {
629625
media={media}
630626
accessibilityLabel={`View details for ${name}`}
631627
>
632-
<h3>
633-
<Text variant="bodyMd" fontWeight="bold" as="span">
634-
{name}
635-
</Text>
636-
</h3>
628+
<Text as="h3" variant="bodyMd" fontWeight="bold">
629+
{name}
630+
</Text>
637631
<div>{location}</div>
638632
</ResourceList.Item>
639633
);
@@ -777,11 +771,9 @@ export function SomeDisabled() {
777771
media={media}
778772
accessibilityLabel={`View details for ${name}`}
779773
>
780-
<h3>
781-
<Text variant="bodyMd" fontWeight="bold" as="span">
782-
{name}
783-
</Text>
784-
</h3>
774+
<Text as="h3" variant="bodyMd" fontWeight="bold">
775+
{name}
776+
</Text>
785777
<div>{location}</div>
786778
</ResourceList.Item>
787779
);
@@ -907,11 +899,9 @@ export function WithoutClearButton() {
907899
media={media}
908900
accessibilityLabel={`View details for ${name}`}
909901
>
910-
<h3>
911-
<Text variant="bodyMd" fontWeight="bold" as="span">
912-
{name}
913-
</Text>
914-
</h3>
902+
<Text as="h3" variant="bodyMd" fontWeight="bold">
903+
{name}
904+
</Text>
915905
<div>{location}</div>
916906
</ResourceList.Item>
917907
);
@@ -1102,11 +1092,9 @@ export function WithHelpText() {
11021092
media={media}
11031093
accessibilityLabel={`View details for ${name}`}
11041094
>
1105-
<h3>
1106-
<Text variant="bodyMd" fontWeight="bold" as="span">
1107-
{name}
1108-
</Text>
1109-
</h3>
1095+
<Text as="h3" variant="bodyMd" fontWeight="bold">
1096+
{name}
1097+
</Text>
11101098
<div>{location}</div>
11111099
</ResourceList.Item>
11121100
);
@@ -1300,11 +1288,9 @@ export function WithQueryFieldHidden() {
13001288
media={media}
13011289
accessibilityLabel={`View details for ${name}`}
13021290
>
1303-
<h3>
1304-
<Text variant="bodyMd" fontWeight="bold" as="span">
1305-
{name}
1306-
</Text>
1307-
</h3>
1291+
<Text as="h3" variant="bodyMd" fontWeight="bold">
1292+
{name}
1293+
</Text>
13081294
<div>{location}</div>
13091295
</ResourceList.Item>
13101296
);
@@ -1498,11 +1484,9 @@ export function WithQueryFieldDisabled() {
14981484
media={media}
14991485
accessibilityLabel={`View details for ${name}`}
15001486
>
1501-
<h3>
1502-
<Text variant="bodyMd" fontWeight="bold" as="span">
1503-
{name}
1504-
</Text>
1505-
</h3>
1487+
<Text as="h3" variant="bodyMd" fontWeight="bold">
1488+
{name}
1489+
</Text>
15061490
<div>{location}</div>
15071491
</ResourceList.Item>
15081492
);

0 commit comments

Comments
 (0)