Skip to content
This repository was archived by the owner on May 20, 2023. It is now read-only.

Commit 29714a2

Browse files
Googlernshahan
authored andcommitted
Add mixins for styling trailingText.
PiperOrigin-RevId: 249864722
1 parent 3ccf000 commit 29714a2

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

angular_components/lib/material_input/_mixins.scss

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,20 @@
130130
}
131131
}
132132

133+
/// Changes the background color of the trailing text.
134+
@mixin material-input-trailing-background-color($color) {
135+
::ng-deep .trailing-text {
136+
background-color: $color;
137+
}
138+
}
139+
140+
/// Changes the background color of the trailing text.
141+
@mixin material-input-trailing-background-radius($radius) {
142+
::ng-deep .trailing-text {
143+
border-radius: $radius;
144+
}
145+
}
146+
133147
/// Hides leading text in cases where it is managed by a separate element.
134148
@mixin material-input-hide-leading-text() {
135149
::ng-deep .leading-text {

0 commit comments

Comments
 (0)