Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(tile): support rtl direction #14441

Merged
merged 2 commits into from
Aug 16, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions packages/styles/scss/components/tile/_tile.scss
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,8 @@ $-icon-container-size: calc(#{layout.density('padding-inline')} * 2 + 1rem);
.#{$prefix}--tile--clickable.#{$prefix}--link--disabled
.#{$prefix}--tile--disabled-icon {
position: absolute;
right: layout.density('padding-inline');
bottom: layout.density('padding-inline');
inset-block-end: layout.density('padding-inline');
inset-inline-end: layout.density('padding-inline');
}

.#{$prefix}--tile--clickable .#{$prefix}--tile--icon {
Expand Down Expand Up @@ -157,11 +157,11 @@ $-icon-container-size: calc(#{layout.density('padding-inline')} * 2 + 1rem);

.#{$prefix}--tile__checkmark {
position: absolute;
top: layout.density('padding-inline');
right: layout.density('padding-inline');
height: 1rem;
border: none;
background: transparent;
inset-block-start: layout.density('padding-inline');
inset-inline-end: layout.density('padding-inline');
opacity: 0;
transition: $duration-fast-02 motion(standard, productive);

Expand All @@ -181,13 +181,13 @@ $-icon-container-size: calc(#{layout.density('padding-inline')} * 2 + 1rem);

.#{$prefix}--tile__chevron {
position: absolute;
right: 0;
bottom: 0;
display: flex;
width: $-icon-container-size;
height: $-icon-container-size;
align-items: center;
justify-content: center;
inset-block-end: 0;
inset-inline-end: 0;

svg {
fill: $icon-primary;
Expand All @@ -211,13 +211,13 @@ $-icon-container-size: calc(#{layout.density('padding-inline')} * 2 + 1rem);
@include button-reset.reset;

position: absolute;
right: 0;
bottom: 0;
display: flex;
width: $-icon-container-size;
height: $-icon-container-size;
align-items: center;
justify-content: center;
inset-block-end: 0;
inset-inline-end: 0;

&:focus {
outline: 2px solid $focus;
Expand Down