Skip to content

Commit

Permalink
fix: unable to use switch inside card body (#2484)
Browse files Browse the repository at this point in the history
* chore: unable to use switch inside card body

* chore: added changset
  • Loading branch information
tewarig authored Jan 20, 2025
1 parent 58c104f commit 3a87bd6
Show file tree
Hide file tree
Showing 6 changed files with 161 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/itchy-boxes-learn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@razorpay/blade': patch
---

fix(blade): unable to use switch inside card body
15 changes: 15 additions & 0 deletions packages/blade/src/components/Card/CardInteractive.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ import { VisuallyHidden } from '~components/VisuallyHidden';
import { Amount } from '~components/Amount';
import { isReactNative } from '~utils';
import StoryPageWrapper from '~utils/storybook/StoryPageWrapper';
import { Switch } from '~components/Switch';
import { Sandbox } from '~utils/storybook/Sandbox';
import { Badge } from '~components/Badge';
import { Radio, RadioGroup } from '~components/Radio';
Expand Down Expand Up @@ -315,6 +316,7 @@ export const Default = CardTemplate.bind({});
export const ClickableCard = (): React.ReactElement => {
const [cardClickCount, setCardClickCount] = React.useState(0);
const [buttonClickCount, setButtonClickCount] = React.useState(0);
const [switchToggleCounter, setSwitchToggleCounter] = React.useState(0);

return (
<Box>
Expand Down Expand Up @@ -352,6 +354,12 @@ export const ClickableCard = (): React.ReactElement => {
{buttonClickCount}
</Text>
</Text>
<Text marginY="spacing.2">
Switch Toggled:{' '}
<Text as="span" weight="semibold">
{switchToggleCounter}
</Text>
</Text>
<Button
size="small"
marginTop="spacing.5"
Expand All @@ -361,6 +369,13 @@ export const ClickableCard = (): React.ReactElement => {
>
Get Demo
</Button>
<Switch
accessibilityLabel="switch"
size="small"
onChange={() => {
setSwitchToggleCounter((prev) => prev + 1);
}}
/>
</CardBody>
</Card>
</Box>
Expand Down
8 changes: 8 additions & 0 deletions packages/blade/src/components/Card/CardRoot.web.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,14 @@ const StyledCardRoot = styled(BaseBox)<CardRootProps & { isPressed: boolean; isM
zIndex: 2,
position: 'relative',
},
[`& label:not(a[data-blade-component="${CARD_LINK_OVERLAY_ID}"])`]: {
zIndex: 2,
position: 'relative',
},
[`& label:not(button[data-blade-component="${CARD_LINK_OVERLAY_ID}"])`]: {
zIndex: 2,
position: 'relative',
},
};
},
);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`<Card /> should render a Card with Header & Footer 1`] = `"<div id="root"><div data-blade-component="card" class="BaseBox-bmPWx CardRootweb__StyledCardRoot-sc-1nb70ck-0 iAbwvA TtxLe"><div elevation="lowRaised" data-blade-component="base-box" class="BaseBox-bmPWx CardSurfaceweb__CardSurface-sc-1pgxikk-0 bcWxdc cGyVzL"><div data-blade-component="card-header" class="BaseBox-bmPWx dVKABc"><div data-blade-component="base-box" class="BaseBox-bmPWx biCNyr"><div data-blade-component="base-box" class="BaseBox-bmPWx gTkVyh"><div data-blade-component="base-box" class="BaseBox-bmPWx zthMO"><svg aria-hidden="true" data-blade-component="icon" height="20px" viewBox="0 0 24 24" width="20px" fill="none" class="Svgweb__StyledSvg-vcmjs8-0"><path d="M12 11C12.5523 11 13 11.4477 13 12V16C13 16.5523 12.5523 17 12 17C11.4477 17 11 16.5523 11 16V12C11 11.4477 11.4477 11 12 11Z" fill="hsla(212, 39%, 16%, 1)" data-blade-component="svg-path"></path><path d="M12 7C11.4477 7 11 7.44772 11 8C11 8.55228 11.4477 9 12 9H12.01C12.5623 9 13.01 8.55228 13.01 8C13.01 7.44772 12.5623 7 12.01 7H12Z" fill="hsla(212, 39%, 16%, 1)" data-blade-component="svg-path"></path><path d="M1 12C1 5.92487 5.92487 1 12 1C18.0751 1 23 5.92487 23 12C23 18.0751 18.0751 23 12 23C5.92487 23 1 18.0751 1 12ZM12 3C7.02944 3 3 7.02944 3 12C3 16.9706 7.02944 21 12 21C16.9706 21 21 16.9706 21 12C21 7.02944 16.9706 3 12 3Z" clip-rule="evenodd" fill="hsla(212, 39%, 16%, 1)" fill-rule="evenodd" data-blade-component="svg-path"></path></svg></div><div data-blade-component="base-box" class="BaseBox-bmPWx ihuchP"><div data-blade-component="base-box" class="BaseBox-bmPWx mKtKh"><p class="StyledBaseText-dVBfTO kICEzD" data-blade-component="text">Card Header</p><div data-blade-component="base-box" class="BaseBox-bmPWx jOqpMP"><div data-blade-component="counter" class="BaseBox-bmPWx ePenKG"><div data-blade-component="base-box" class="BaseBox-bmPWx StyledCounterweb__StyledCounter-sc-1itt9w6-0 cTQuSp dbfGbJ"><div data-blade-component="base-box" class="BaseBox-bmPWx iUxudu"><p class="StyledBaseText-dVBfTO dTGEcz" data-blade-component="text">12</p></div></div></div></div></div><p class="StyledBaseText-dVBfTO licaLZ" data-blade-component="text">Card subtitle</p></div></div><div data-blade-component="base-box" class="BaseBox-bmPWx bLJxIg"><div data-blade-component="badge" class="BaseBox-bmPWx ePenKG"><div data-blade-component="base-box" class="BaseBox-bmPWx StyledBadgeweb__StyledBadge-sc-1svn4tv-0 bgUwrl bMPocw"><div data-blade-component="base-box" class="BaseBox-bmPWx iUxudu"><p class="StyledBaseText-dVBfTO iDpGlA" data-blade-component="text">NEW</p></div></div></div></div></div><div data-blade-component="divider" role="separator" class="BaseBox-bmPWx Divider__StyledDivider-sc-8k3avj-0 bWVnPN WrXok"></div></div><div data-blade-component="card-body" class="BaseBox-bmPWx"><p class="StyledBaseText-dVBfTO fAQkza" data-blade-component="text">Plain Card</p></div><div data-blade-component="card-footer" class="BaseBox-bmPWx cdqgjM"><div data-blade-component="divider" role="separator" class="BaseBox-bmPWx Divider__StyledDivider-sc-8k3avj-0 bWVnPN WrXok"></div><div data-blade-component="base-box" class="BaseBox-bmPWx jjVlQX"><div data-blade-component="base-box" class="BaseBox-bmPWx edNXIx"><p class="StyledBaseText-dVBfTO gXTKyw" data-blade-component="text">Card Footer</p><p class="StyledBaseText-dVBfTO eETJTC" data-blade-component="text">Card footer subtitle</p></div><div data-blade-component="base-box" class="BaseBox-bmPWx jwvbFL"><div data-blade-component="base-box" class="BaseBox-bmPWx brkcZZ"><button type="button" data-blade-component="button" role="button" class="StyledBaseButtonweb__StyledBaseButton-sc-26bt38-0 cxbnnu"><div data-blade-component="base-box" class="BaseBox-bmPWx AnimatedButtonContentweb__AnimatedButtonContent-sc-1fkx0t6-0 eHcfsa"><div data-blade-component="base-box" class="BaseBox-bmPWx BaseButton__ButtonContent-zf1huq-0 LeezU esItiH"><div class="StyledBaseText-dVBfTO RwjIC" data-blade-component="base-text">Delete</div></div></div></button></div><div data-blade-component="base-box" class="BaseBox-bmPWx kVSNdI"></div><div data-blade-component="base-box" class="BaseBox-bmPWx brkcZZ"><button type="button" data-blade-component="button" role="button" class="StyledBaseButtonweb__StyledBaseButton-sc-26bt38-0 cAjBUc"><div data-blade-component="base-box" class="BaseBox-bmPWx AnimatedButtonContentweb__AnimatedButtonContent-sc-1fkx0t6-0 eHcfsa"><div data-blade-component="base-box" class="BaseBox-bmPWx BaseButton__ButtonContent-zf1huq-0 LeezU esItiH"><div class="StyledBaseText-dVBfTO eGcQGV" data-blade-component="base-text">Save</div></div></div></button></div></div></div></div></div></div></div>"`;
exports[`<Card /> should render a Card with Header & Footer 1`] = `"<div id="root"><div data-blade-component="card" class="BaseBox-bmPWx CardRootweb__StyledCardRoot-sc-1nb70ck-0 iAbwvA dzkBld"><div elevation="lowRaised" data-blade-component="base-box" class="BaseBox-bmPWx CardSurfaceweb__CardSurface-sc-1pgxikk-0 bcWxdc cGyVzL"><div data-blade-component="card-header" class="BaseBox-bmPWx dVKABc"><div data-blade-component="base-box" class="BaseBox-bmPWx biCNyr"><div data-blade-component="base-box" class="BaseBox-bmPWx gTkVyh"><div data-blade-component="base-box" class="BaseBox-bmPWx zthMO"><svg aria-hidden="true" data-blade-component="icon" height="20px" viewBox="0 0 24 24" width="20px" fill="none" class="Svgweb__StyledSvg-vcmjs8-0"><path d="M12 11C12.5523 11 13 11.4477 13 12V16C13 16.5523 12.5523 17 12 17C11.4477 17 11 16.5523 11 16V12C11 11.4477 11.4477 11 12 11Z" fill="hsla(212, 39%, 16%, 1)" data-blade-component="svg-path"></path><path d="M12 7C11.4477 7 11 7.44772 11 8C11 8.55228 11.4477 9 12 9H12.01C12.5623 9 13.01 8.55228 13.01 8C13.01 7.44772 12.5623 7 12.01 7H12Z" fill="hsla(212, 39%, 16%, 1)" data-blade-component="svg-path"></path><path d="M1 12C1 5.92487 5.92487 1 12 1C18.0751 1 23 5.92487 23 12C23 18.0751 18.0751 23 12 23C5.92487 23 1 18.0751 1 12ZM12 3C7.02944 3 3 7.02944 3 12C3 16.9706 7.02944 21 12 21C16.9706 21 21 16.9706 21 12C21 7.02944 16.9706 3 12 3Z" clip-rule="evenodd" fill="hsla(212, 39%, 16%, 1)" fill-rule="evenodd" data-blade-component="svg-path"></path></svg></div><div data-blade-component="base-box" class="BaseBox-bmPWx ihuchP"><div data-blade-component="base-box" class="BaseBox-bmPWx mKtKh"><p class="StyledBaseText-dVBfTO kICEzD" data-blade-component="text">Card Header</p><div data-blade-component="base-box" class="BaseBox-bmPWx jOqpMP"><div data-blade-component="counter" class="BaseBox-bmPWx ePenKG"><div data-blade-component="base-box" class="BaseBox-bmPWx StyledCounterweb__StyledCounter-sc-1itt9w6-0 cTQuSp dbfGbJ"><div data-blade-component="base-box" class="BaseBox-bmPWx iUxudu"><p class="StyledBaseText-dVBfTO dTGEcz" data-blade-component="text">12</p></div></div></div></div></div><p class="StyledBaseText-dVBfTO licaLZ" data-blade-component="text">Card subtitle</p></div></div><div data-blade-component="base-box" class="BaseBox-bmPWx bLJxIg"><div data-blade-component="badge" class="BaseBox-bmPWx ePenKG"><div data-blade-component="base-box" class="BaseBox-bmPWx StyledBadgeweb__StyledBadge-sc-1svn4tv-0 bgUwrl bMPocw"><div data-blade-component="base-box" class="BaseBox-bmPWx iUxudu"><p class="StyledBaseText-dVBfTO iDpGlA" data-blade-component="text">NEW</p></div></div></div></div></div><div data-blade-component="divider" role="separator" class="BaseBox-bmPWx Divider__StyledDivider-sc-8k3avj-0 bWVnPN WrXok"></div></div><div data-blade-component="card-body" class="BaseBox-bmPWx"><p class="StyledBaseText-dVBfTO fAQkza" data-blade-component="text">Plain Card</p></div><div data-blade-component="card-footer" class="BaseBox-bmPWx cdqgjM"><div data-blade-component="divider" role="separator" class="BaseBox-bmPWx Divider__StyledDivider-sc-8k3avj-0 bWVnPN WrXok"></div><div data-blade-component="base-box" class="BaseBox-bmPWx jjVlQX"><div data-blade-component="base-box" class="BaseBox-bmPWx edNXIx"><p class="StyledBaseText-dVBfTO gXTKyw" data-blade-component="text">Card Footer</p><p class="StyledBaseText-dVBfTO eETJTC" data-blade-component="text">Card footer subtitle</p></div><div data-blade-component="base-box" class="BaseBox-bmPWx jwvbFL"><div data-blade-component="base-box" class="BaseBox-bmPWx brkcZZ"><button type="button" data-blade-component="button" role="button" class="StyledBaseButtonweb__StyledBaseButton-sc-26bt38-0 cxbnnu"><div data-blade-component="base-box" class="BaseBox-bmPWx AnimatedButtonContentweb__AnimatedButtonContent-sc-1fkx0t6-0 eHcfsa"><div data-blade-component="base-box" class="BaseBox-bmPWx BaseButton__ButtonContent-zf1huq-0 LeezU esItiH"><div class="StyledBaseText-dVBfTO RwjIC" data-blade-component="base-text">Delete</div></div></div></button></div><div data-blade-component="base-box" class="BaseBox-bmPWx kVSNdI"></div><div data-blade-component="base-box" class="BaseBox-bmPWx brkcZZ"><button type="button" data-blade-component="button" role="button" class="StyledBaseButtonweb__StyledBaseButton-sc-26bt38-0 cAjBUc"><div data-blade-component="base-box" class="BaseBox-bmPWx AnimatedButtonContentweb__AnimatedButtonContent-sc-1fkx0t6-0 eHcfsa"><div data-blade-component="base-box" class="BaseBox-bmPWx BaseButton__ButtonContent-zf1huq-0 LeezU esItiH"><div class="StyledBaseText-dVBfTO eGcQGV" data-blade-component="base-text">Save</div></div></div></button></div></div></div></div></div></div></div>"`;

exports[`<Card /> should render a Card with Header & Footer 2`] = `
.c0.c0.c0.c0.c0 {
Expand Down Expand Up @@ -237,6 +237,16 @@ exports[`<Card /> should render a Card with Header & Footer 2`] = `
position: relative;
}
.c1.c1.c1.c1.c1 label:not(a[data-blade-component="card-link-overlay"]) {
z-index: 2;
position: relative;
}
.c1.c1.c1.c1.c1 label:not(button[data-blade-component="card-link-overlay"]) {
z-index: 2;
position: relative;
}
.c20.c20.c20.c20.c20 {
background-color: hsla(211,20%,52%,0.09);
border-radius: 9999px;
Expand Down Expand Up @@ -868,7 +878,7 @@ exports[`<Card /> should render a Card with Header & Footer 2`] = `
</div>
`;

exports[`<Card /> should render a Interactive Card with href 1`] = `"<div id="root"><div href="https://google.com" data-blade-component="card" class="BaseBox-bmPWx CardRootweb__StyledCardRoot-sc-1nb70ck-0 iAbwvA TtxLe"><div elevation="lowRaised" data-blade-component="base-box" class="BaseBox-bmPWx CardSurfaceweb__CardSurface-sc-1pgxikk-0 bcWxdc cGyVzL"><a href="https://google.com" data-blade-component="card-link-overlay" aria-pressed="false" class="LinkOverlayweb__LinkOverlay-ugib1o-0 cmIkCR"></a><div data-blade-component="card-body" class="BaseBox-bmPWx"><p class="StyledBaseText-dVBfTO fAQkza" data-blade-component="text">Plain Card</p></div></div></div></div>"`;
exports[`<Card /> should render a Interactive Card with href 1`] = `"<div id="root"><div href="https://google.com" data-blade-component="card" class="BaseBox-bmPWx CardRootweb__StyledCardRoot-sc-1nb70ck-0 iAbwvA dzkBld"><div elevation="lowRaised" data-blade-component="base-box" class="BaseBox-bmPWx CardSurfaceweb__CardSurface-sc-1pgxikk-0 bcWxdc cGyVzL"><a href="https://google.com" data-blade-component="card-link-overlay" aria-pressed="false" class="LinkOverlayweb__LinkOverlay-ugib1o-0 cmIkCR"></a><div data-blade-component="card-body" class="BaseBox-bmPWx"><p class="StyledBaseText-dVBfTO fAQkza" data-blade-component="text">Plain Card</p></div></div></div></div>"`;

exports[`<Card /> should render a Interactive Card with href 2`] = `
.c0.c0.c0.c0.c0 {
Expand Down Expand Up @@ -935,6 +945,16 @@ exports[`<Card /> should render a Interactive Card with href 2`] = `
position: relative;
}
.c1.c1.c1.c1.c1 label:not(a[data-blade-component="card-link-overlay"]) {
z-index: 2;
position: relative;
}
.c1.c1.c1.c1.c1 label:not(button[data-blade-component="card-link-overlay"]) {
z-index: 2;
position: relative;
}
.c5.c5.c5.c5.c5 {
color: hsla(212,39%,16%,1);
font-family: "Inter","Inter Fallback Arial",Arial;
Expand Down Expand Up @@ -987,7 +1007,7 @@ exports[`<Card /> should render a Interactive Card with href 2`] = `
</div>
`;

exports[`<Card /> should render a Interactive Card with onClick 1`] = `"<div id="root"><div data-blade-component="card" class="BaseBox-bmPWx CardRootweb__StyledCardRoot-sc-1nb70ck-0 iAbwvA TtxLe"><div elevation="lowRaised" data-blade-component="base-box" class="BaseBox-bmPWx CardSurfaceweb__CardSurface-sc-1pgxikk-0 bcWxdc cGyVzL"><button data-blade-component="card-link-overlay" aria-pressed="false" class="LinkOverlayweb__LinkOverlay-ugib1o-0 cmIkCR"></button><div data-blade-component="card-body" class="BaseBox-bmPWx"><p class="StyledBaseText-dVBfTO fAQkza" data-blade-component="text">Plain Card</p></div></div></div></div>"`;
exports[`<Card /> should render a Interactive Card with onClick 1`] = `"<div id="root"><div data-blade-component="card" class="BaseBox-bmPWx CardRootweb__StyledCardRoot-sc-1nb70ck-0 iAbwvA dzkBld"><div elevation="lowRaised" data-blade-component="base-box" class="BaseBox-bmPWx CardSurfaceweb__CardSurface-sc-1pgxikk-0 bcWxdc cGyVzL"><button data-blade-component="card-link-overlay" aria-pressed="false" class="LinkOverlayweb__LinkOverlay-ugib1o-0 cmIkCR"></button><div data-blade-component="card-body" class="BaseBox-bmPWx"><p class="StyledBaseText-dVBfTO fAQkza" data-blade-component="text">Plain Card</p></div></div></div></div>"`;

exports[`<Card /> should render a Interactive Card with onClick 2`] = `
.c0.c0.c0.c0.c0 {
Expand Down Expand Up @@ -1054,6 +1074,16 @@ exports[`<Card /> should render a Interactive Card with onClick 2`] = `
position: relative;
}
.c1.c1.c1.c1.c1 label:not(a[data-blade-component="card-link-overlay"]) {
z-index: 2;
position: relative;
}
.c1.c1.c1.c1.c1 label:not(button[data-blade-component="card-link-overlay"]) {
z-index: 2;
position: relative;
}
.c5.c5.c5.c5.c5 {
color: hsla(212,39%,16%,1);
font-family: "Inter","Inter Fallback Arial",Arial;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,16 @@ exports[`<Card /> should render a Card with Footer 1`] = `
position: relative;
}
.c1.c1.c1.c1.c1 label:not(a[data-blade-component="card-link-overlay"]) {
z-index: 2;
position: relative;
}
.c1.c1.c1.c1.c1 label:not(button[data-blade-component="card-link-overlay"]) {
z-index: 2;
position: relative;
}
.c4.c4.c4.c4.c4 {
color: hsla(212,39%,16%,1);
font-family: "Inter","Inter Fallback Arial",Arial;
Expand Down Expand Up @@ -672,6 +682,16 @@ exports[`<Card /> should render a Card with Header 1`] = `
position: relative;
}
.c1.c1.c1.c1.c1 label:not(a[data-blade-component="card-link-overlay"]) {
z-index: 2;
position: relative;
}
.c1.c1.c1.c1.c1 label:not(button[data-blade-component="card-link-overlay"]) {
z-index: 2;
position: relative;
}
.c20.c20.c20.c20.c20 {
background-color: hsla(211,20%,52%,0.09);
border-radius: 9999px;
Expand Down Expand Up @@ -1036,6 +1056,16 @@ exports[`<Card /> should render a Card without 0 padding 1`] = `
position: relative;
}
.c1.c1.c1.c1.c1 label:not(a[data-blade-component="card-link-overlay"]) {
z-index: 2;
position: relative;
}
.c1.c1.c1.c1.c1 label:not(button[data-blade-component="card-link-overlay"]) {
z-index: 2;
position: relative;
}
<div>
<div
class="c0 c1"
Expand Down Expand Up @@ -1102,6 +1132,16 @@ exports[`<Card /> should render a border when elevation is \`none\` 1`] = `
position: relative;
}
.c1.c1.c1.c1.c1 label:not(a[data-blade-component="card-link-overlay"]) {
z-index: 2;
position: relative;
}
.c1.c1.c1.c1.c1 label:not(button[data-blade-component="card-link-overlay"]) {
z-index: 2;
position: relative;
}
<div>
<div
class="c0 c1"
Expand Down Expand Up @@ -1165,6 +1205,16 @@ exports[`<Card /> should render a plain Card 1`] = `
position: relative;
}
.c1.c1.c1.c1.c1 label:not(a[data-blade-component="card-link-overlay"]) {
z-index: 2;
position: relative;
}
.c1.c1.c1.c1.c1 label:not(button[data-blade-component="card-link-overlay"]) {
z-index: 2;
position: relative;
}
<div>
<div
class="c0 c1"
Expand Down Expand Up @@ -1308,6 +1358,16 @@ exports[`<Card /> should support adding data-analytics attributes 1`] = `
position: relative;
}
.c1.c1.c1.c1.c1 label:not(a[data-blade-component="card-link-overlay"]) {
z-index: 2;
position: relative;
}
.c1.c1.c1.c1.c1 label:not(button[data-blade-component="card-link-overlay"]) {
z-index: 2;
position: relative;
}
.c4.c4.c4.c4.c4 {
color: hsla(212,39%,16%,1);
font-family: "Inter","Inter Fallback Arial",Arial;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,16 @@ exports[`<Card /> should render a clickable Card 1`] = `
position: relative;
}
.c1.c1.c1.c1.c1 label:not(a[data-blade-component="card-link-overlay"]) {
z-index: 2;
position: relative;
}
.c1.c1.c1.c1.c1 label:not(button[data-blade-component="card-link-overlay"]) {
z-index: 2;
position: relative;
}
<div>
<div
class="c0 c1"
Expand Down Expand Up @@ -156,6 +166,16 @@ exports[`<Card /> should render a linkable Card 1`] = `
position: relative;
}
.c1.c1.c1.c1.c1 label:not(a[data-blade-component="card-link-overlay"]) {
z-index: 2;
position: relative;
}
.c1.c1.c1.c1.c1 label:not(button[data-blade-component="card-link-overlay"]) {
z-index: 2;
position: relative;
}
<div>
<div
class="c0 c1"
Expand Down Expand Up @@ -249,6 +269,16 @@ exports[`<Card /> should render a linkable Card with onClick 1`] = `
position: relative;
}
.c1.c1.c1.c1.c1 label:not(a[data-blade-component="card-link-overlay"]) {
z-index: 2;
position: relative;
}
.c1.c1.c1.c1.c1 label:not(button[data-blade-component="card-link-overlay"]) {
z-index: 2;
position: relative;
}
<div>
<div
class="c0 c1"
Expand Down Expand Up @@ -355,6 +385,16 @@ exports[`<Card /> should render an interactive Card 1`] = `
position: relative;
}
.c1.c1.c1.c1.c1 label:not(a[data-blade-component="card-link-overlay"]) {
z-index: 2;
position: relative;
}
.c1.c1.c1.c1.c1 label:not(button[data-blade-component="card-link-overlay"]) {
z-index: 2;
position: relative;
}
<div>
<div
class="c0 c1"
Expand Down

0 comments on commit 3a87bd6

Please sign in to comment.