Skip to content

Commit

Permalink
update snap
Browse files Browse the repository at this point in the history
  • Loading branch information
kmcfaul committed Apr 17, 2023
1 parent fcd4dbd commit 0551c43
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ test('ModalBoxTitle danger variant', () => {
expect(asFragment()).toMatchSnapshot();
});

test('ModalBoxTitle default variant', () => {
test('ModalBoxTitle custom variant', () => {
const { asFragment } = render(
<ModalBoxTitle title="Test Modal Box warning" id="boxId" titleIconVariant="default">
<ModalBoxTitle title="Test Modal Box warning" id="boxId" titleIconVariant="custom">
content
</ModalBoxTitle>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ exports[`ModalBoxTitle custom icon variant 1`] = `
</DocumentFragment>
`;

exports[`ModalBoxTitle danger variant 1`] = `
exports[`ModalBoxTitle custom variant 1`] = `
<DocumentFragment>
<h1
class="pf-c-modal-box__title pf-m-icon"
Expand All @@ -79,45 +79,57 @@ exports[`ModalBoxTitle danger variant 1`] = `
class="pf-svg"
fill="currentColor"
role="img"
viewBox="0 0 512 512"
viewBox="0 0 896 1024"
>
<path
d="M504 256c0 136.997-111.043 248-248 248S8 392.997 8 256C8 119.083 119.043 8 256 8s248 111.083 248 248zm-248 50c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z"
d="M448,0 C465.333333,0 480.333333,6.33333333 493,19 C505.666667,31.6666667 512,46.6666667 512,64 L512,106 L514.23,106.45 C587.89,121.39 648.48,157.24 696,214 C744,271.333333 768,338.666667 768,416 C768,500 780,568.666667 804,622 C818.666667,652.666667 841.333333,684 872,716 C873.773676,718.829136 875.780658,721.505113 878,724 C890,737.333333 896,752.333333 896,769 C896,785.666667 890,800.333333 878,813 C866,825.666667 850.666667,832 832,832 L63.3,832 C44.9533333,831.84 29.8533333,825.506667 18,813 C6,800.333333 0,785.666667 0,769 C0,752.333333 6,737.333333 18,724 L24,716 L25.06,714.9 C55.1933333,683.28 77.5066667,652.313333 92,622 C116,568.666667 128,500 128,416 C128,338.666667 152,271.333333 200,214 C248,156.666667 309.333333,120.666667 384,106 L384,63.31 C384.166667,46.27 390.5,31.5 403,19 C415.666667,6.33333333 430.666667,0 448,0 Z M576,896 L576,897.08 C575.74,932.6 563.073333,962.573333 538,987 C512.666667,1011.66667 482.666667,1024 448,1024 C413.333333,1024 383.333333,1011.66667 358,987 C332.666667,962.333333 320,932 320,896 L576,896 Z"
/>
</svg>
</span>
<span
class="pf-u-screen-reader"
>
Danger alert:
Custom alert:
</span>
<span
class="pf-c-modal-box__title-text"
>
Test Modal Box danger
Test Modal Box warning
</span>
</h1>
</DocumentFragment>
`;

exports[`ModalBoxTitle default variant 1`] = `
exports[`ModalBoxTitle danger variant 1`] = `
<DocumentFragment>
<h1
class="pf-c-modal-box__title pf-m-icon"
id="boxId"
>
<span
class="pf-c-modal-box__title-icon"
/>
>
<svg
aria-hidden="true"
class="pf-svg"
fill="currentColor"
role="img"
viewBox="0 0 512 512"
>
<path
d="M504 256c0 136.997-111.043 248-248 248S8 392.997 8 256C8 119.083 119.043 8 256 8s248 111.083 248 248zm-248 50c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z"
/>
</svg>
</span>
<span
class="pf-u-screen-reader"
>
Default alert:
Danger alert:
</span>
<span
class="pf-c-modal-box__title-text"
>
Test Modal Box warning
Test Modal Box danger
</span>
</h1>
</DocumentFragment>
Expand Down

0 comments on commit 0551c43

Please sign in to comment.