Skip to content

Commit c27bdee

Browse files
asyncLizcopybara-github
authored andcommitted
chore(catalog): fix text field icon usage for SSR
Fixes #5723 These examples were missing their SSR attributes for slotted content. PiperOrigin-RevId: 678364136
1 parent b10ce3f commit c27bdee

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/components/figures/textfield/usage-icons.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,16 @@
33
aria-label="Three outlined textfields next to each other the first has a search icon at the start the label Search Messages, the second a label that says Password and an eye icon toggle button at the end, and a red, visually errored outlined textfield with the label Username with an exclamation icon at the end and helper error text under the field that says Username not available"
44
style="padding-block: 16px; gap: 16px"
55
>
6-
<md-outlined-text-field placeholder="Search for messages">
6+
<md-outlined-text-field placeholder="Search for messages" has-leading-icon>
77
<md-icon slot="leading-icon">search</md-icon>
88
</md-outlined-text-field>
9-
<md-outlined-text-field label="Password" type="password">
9+
<md-outlined-text-field label="Password" type="password" has-trailing-icon>
1010
<md-icon-button toggle slot="trailing-icon">
1111
<md-icon>visibility</md-icon>
1212
<md-icon slot="selected">visibility_off</md-icon>
1313
</md-icon-button>
1414
</md-outlined-text-field>
15-
<md-outlined-text-field label="Username" error error-text="Username not available">
15+
<md-outlined-text-field label="Username" error error-text="Username not available" has-trailing-icon>
1616
<md-icon slot="trailing-icon">error</md-icon>
1717
</md-outlined-text-field>
1818
</figure>

0 commit comments

Comments
 (0)