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

[MDCTextField] Trailing icons do not appear #8106

Closed
LukazTrisauskas opened this issue May 19, 2023 · 1 comment
Closed

[MDCTextField] Trailing icons do not appear #8106

LukazTrisauskas opened this issue May 19, 2023 · 1 comment
Labels
bug Unresolved (Archived) Open and unresolved issues and PRs that were closed due to archiving the repository.

Comments

@LukazTrisauskas
Copy link

LukazTrisauskas commented May 19, 2023

Bug report

I've created a TextField with a trailing icon and it does not appear, unless I hover over the text field. I've tried the same with leading icon, and it seem to work.

Steps to reproduce

CSS

.textField {
	width:100%;
	margin:0 0 10px 0;
}

  1. HTML code using trailing-icon class
<div class="mdc-layout-grid__cell--span-12">
                    <label class="mdc-text-field mdc-text-field--with-trailing-icon textField">
                        <span class="mdc-floating-label">Application</span>
                        <input id="app" class="mdc-text-field_input form_input">
                        <i class="material-icons mdc-text-field__icon mdc-text-field--with-trailing-icon">arrow_drop_down</i>
                        <span class="mdc-line-ripple"></span>
                    </label>
  1. HTML code using leading-icon class
<label class="mdc-text-field mdc-text-field--with-leading-icon textField">
                        <span class="mdc-floating-label">Application</span>
                        <input id="app" class="mdc-text-field_input form_input">
                        <i class="material-icons mdc-text-field__icon mdc-text-field--with-leading-icon">arrow_drop_down</i>
                        <span class="mdc-line-ripple"></span>
                    </label>

Actual behavior

When hovering over the TextField the trailing icon appears.

Expected behavior

Trailing icon should always be visible.

Your Environment:

Software Version(s)
MDC Web ?
Browser Chrome 113
Operating System Windows 10
@mindaugasvcs
Copy link

It's working as expected.

@asyncLiz asyncLiz added the Unresolved (Archived) Open and unresolved issues and PRs that were closed due to archiving the repository. label Jan 13, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Unresolved (Archived) Open and unresolved issues and PRs that were closed due to archiving the repository.
Projects
None yet
Development

No branches or pull requests

3 participants