Skip to content

Commit

Permalink
fix(component/option-card): update the z-index values of the componen…
Browse files Browse the repository at this point in the history
…t elements (#1319)
  • Loading branch information
tiloyi committed Jan 4, 2023
1 parent 44b5aa2 commit 23a8d01
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions packages/styles/components/_c.option-card.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
position: absolute;
right: $mu100;
top: $mu100;
z-index: 10;
z-index: 4;

&:focus {
box-shadow: none;
Expand Down Expand Up @@ -46,7 +46,7 @@
textarea,
#{$parent}__focusable,
[tabindex]:not([tabindex="-1"]) {
z-index: 2;
z-index: 3;
}
}

Expand Down Expand Up @@ -81,7 +81,7 @@
top: 50%;
transform: translate(-50%, -50%);
width: 100%;
z-index: 5;
z-index: 2;

&-text {
@include visually-hidden();
Expand Down
4 changes: 4 additions & 0 deletions src/docs/Components/OptionGroup/OptionCard/code.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -106,3 +106,7 @@ To achieve that you have to add `mc-option-card--small` modifier to the `mc-opti
In some cases, your content need to fill the whole card. To add an image for example.

To achieve that you have to add `mc-option-card--no-padding` modifier to the `mc-option-card` element.

## Implementation examples

<Preview path="product" />
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,3 @@
.hide-button {
display: none;
}

#exampleButton {
z-index: 10;
}

0 comments on commit 23a8d01

Please sign in to comment.