Skip to content

Commit a2fcfea

Browse files
authored
Status styling fixes (#241)
* Status styling fixes * Status styling fixes
1 parent f96c980 commit a2fcfea

File tree

2 files changed

+13
-12
lines changed

2 files changed

+13
-12
lines changed

packages/module/src/Status/Status.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ export interface StatusProps extends React.PropsWithChildren {
4545

4646
const useStyles = createUseStyles({
4747
icon: {
48-
margin: 0
48+
margin: "0",
49+
alignSelf: "flex-start",
4950
},
5051
statusLabel: {
5152
lineHeight: 'var(--pf-v6-global--LineHeight--sm)',
@@ -67,7 +68,7 @@ export const Status: React.FC<StatusProps> = ({ variant = StatusVariant.plain, l
6768
<Flex title={label} alignItems={{ default: 'alignItemsCenter' }} {...props}>
6869
{icon && (
6970
<FlexItem className={classes.icon}>
70-
<Icon className='pf-v6-u-mr-md' status={status} title={iconTitle ?? status} data-ouia-component-id={`${ouiaId}-icon`}>
71+
<Icon className='pf-v6-u-mr-sm' status={status} title={iconTitle ?? status} data-ouia-component-id={`${ouiaId}-icon`}>
7172
{icon}
7273
</Icon>
7374
</FlexItem>

packages/module/src/Status/__snapshots__/Status.test.tsx.snap

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ exports[`Status component should render correctly 1`] = `
1313
class="icon-0-2-1"
1414
>
1515
<span
16-
class="pf-v6-c-icon pf-v6-u-mr-md"
16+
class="pf-v6-c-icon pf-v6-u-mr-sm"
1717
data-ouia-component-id="Status-icon"
1818
title="warning"
1919
>
@@ -62,7 +62,7 @@ exports[`Status component should render correctly 1`] = `
6262
class="icon-0-2-1"
6363
>
6464
<span
65-
class="pf-v6-c-icon pf-v6-u-mr-md"
65+
class="pf-v6-c-icon pf-v6-u-mr-sm"
6666
data-ouia-component-id="Status-icon"
6767
title="warning"
6868
>
@@ -180,7 +180,7 @@ exports[`Status component should render correctly link 1`] = `
180180
class="icon-0-2-1"
181181
>
182182
<span
183-
class="pf-v6-c-icon pf-v6-u-mr-md"
183+
class="pf-v6-c-icon pf-v6-u-mr-sm"
184184
data-ouia-component-id="Status-icon"
185185
title="success"
186186
>
@@ -243,7 +243,7 @@ exports[`Status component should render correctly link 1`] = `
243243
class="icon-0-2-1"
244244
>
245245
<span
246-
class="pf-v6-c-icon pf-v6-u-mr-md"
246+
class="pf-v6-c-icon pf-v6-u-mr-sm"
247247
data-ouia-component-id="Status-icon"
248248
title="success"
249249
>
@@ -366,7 +366,7 @@ exports[`Status component should render correctly popover 1`] = `
366366
class="icon-0-2-1"
367367
>
368368
<span
369-
class="pf-v6-c-icon pf-v6-u-mr-md"
369+
class="pf-v6-c-icon pf-v6-u-mr-sm"
370370
data-ouia-component-id="Status-icon"
371371
title="danger"
372372
>
@@ -433,7 +433,7 @@ exports[`Status component should render correctly popover 1`] = `
433433
class="icon-0-2-1"
434434
>
435435
<span
436-
class="pf-v6-c-icon pf-v6-u-mr-md"
436+
class="pf-v6-c-icon pf-v6-u-mr-sm"
437437
data-ouia-component-id="Status-icon"
438438
title="danger"
439439
>
@@ -542,7 +542,7 @@ exports[`Status component should render correctly with description 1`] = `
542542
class="icon-0-2-1"
543543
>
544544
<span
545-
class="pf-v6-c-icon pf-v6-u-mr-md"
545+
class="pf-v6-c-icon pf-v6-u-mr-sm"
546546
data-ouia-component-id="Status-icon"
547547
title="warning"
548548
>
@@ -600,7 +600,7 @@ exports[`Status component should render correctly with description 1`] = `
600600
class="icon-0-2-1"
601601
>
602602
<span
603-
class="pf-v6-c-icon pf-v6-u-mr-md"
603+
class="pf-v6-c-icon pf-v6-u-mr-sm"
604604
data-ouia-component-id="Status-icon"
605605
title="warning"
606606
>
@@ -715,7 +715,7 @@ exports[`Status component should render iconOnly correctly 1`] = `
715715
class="icon-0-2-1"
716716
>
717717
<span
718-
class="pf-v6-c-icon pf-v6-u-mr-md"
718+
class="pf-v6-c-icon pf-v6-u-mr-sm"
719719
data-ouia-component-id="Status-icon"
720720
title="1 security issue found"
721721
>
@@ -750,7 +750,7 @@ exports[`Status component should render iconOnly correctly 1`] = `
750750
class="icon-0-2-1"
751751
>
752752
<span
753-
class="pf-v6-c-icon pf-v6-u-mr-md"
753+
class="pf-v6-c-icon pf-v6-u-mr-sm"
754754
data-ouia-component-id="Status-icon"
755755
title="1 security issue found"
756756
>

0 commit comments

Comments
 (0)