Skip to content

Commit

Permalink
chore(catalog): fix text field icon usage for SSR
Browse files Browse the repository at this point in the history
Fixes #5723

These examples were missing their SSR attributes for slotted content.

PiperOrigin-RevId: 678364136
  • Loading branch information
asyncLiz authored and copybara-github committed Sep 24, 2024
1 parent b10ce3f commit c27bdee
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/components/figures/textfield/usage-icons.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@
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"
style="padding-block: 16px; gap: 16px"
>
<md-outlined-text-field placeholder="Search for messages">
<md-outlined-text-field placeholder="Search for messages" has-leading-icon>
<md-icon slot="leading-icon">search</md-icon>
</md-outlined-text-field>
<md-outlined-text-field label="Password" type="password">
<md-outlined-text-field label="Password" type="password" has-trailing-icon>
<md-icon-button toggle slot="trailing-icon">
<md-icon>visibility</md-icon>
<md-icon slot="selected">visibility_off</md-icon>
</md-icon-button>
</md-outlined-text-field>
<md-outlined-text-field label="Username" error error-text="Username not available">
<md-outlined-text-field label="Username" error error-text="Username not available" has-trailing-icon>
<md-icon slot="trailing-icon">error</md-icon>
</md-outlined-text-field>
</figure>
Expand Down

0 comments on commit c27bdee

Please sign in to comment.