Skip to content

Commit

Permalink
feat(tooltip): Fix rich tooltip title alignment (multiline titles sho…
Browse files Browse the repository at this point in the history
…uld be start aligned).

PiperOrigin-RevId: 689582201
  • Loading branch information
sayris authored and copybara-github committed Oct 25, 2024
1 parent ef11212 commit 099ea3a
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions packages/mdc-tooltip/_tooltip.scss
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,13 @@ $_caret-size: 24px;
min-width: $_min-width;
max-width: $_rich_max-width;
position: relative;

@include rtl.ignore-next-line();
text-align: left;
@include rtl.rtl {
@include rtl.ignore-next-line();
text-align: right;
}
}
}

Expand All @@ -160,12 +167,6 @@ $_caret-size: 24px;
@include feature-targeting.targets($feat-structure) {
max-width: calc(#{$_max-width} - (2 * #{$_content-margin}));
margin: $_content-margin;
@include rtl.ignore-next-line();
text-align: left;
@include rtl.rtl {
@include rtl.ignore-next-line();
text-align: right;
}
}

.mdc-tooltip--rich & {
Expand Down

0 comments on commit 099ea3a

Please sign in to comment.