Skip to content
This repository was archived by the owner on Jan 13, 2025. It is now read-only.

Commit 099ea3a

Browse files
sayriscopybara-github
authored andcommitted
feat(tooltip): Fix rich tooltip title alignment (multiline titles should be start aligned).
PiperOrigin-RevId: 689582201
1 parent ef11212 commit 099ea3a

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

packages/mdc-tooltip/_tooltip.scss

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,13 @@ $_caret-size: 24px;
136136
min-width: $_min-width;
137137
max-width: $_rich_max-width;
138138
position: relative;
139+
140+
@include rtl.ignore-next-line();
141+
text-align: left;
142+
@include rtl.rtl {
143+
@include rtl.ignore-next-line();
144+
text-align: right;
145+
}
139146
}
140147
}
141148

@@ -160,12 +167,6 @@ $_caret-size: 24px;
160167
@include feature-targeting.targets($feat-structure) {
161168
max-width: calc(#{$_max-width} - (2 * #{$_content-margin}));
162169
margin: $_content-margin;
163-
@include rtl.ignore-next-line();
164-
text-align: left;
165-
@include rtl.rtl {
166-
@include rtl.ignore-next-line();
167-
text-align: right;
168-
}
169170
}
170171

171172
.mdc-tooltip--rich & {

0 commit comments

Comments
 (0)