material-components / material-components-web

Modular and customizable Material Design UI components for the web
https://material.io/develop/web
MIT License
17.14k stars 2.15k forks source link

Dynamically setting labels #6546

Open simonziegler opened 3 years ago

simonziegler commented 3 years ago

Feature Request

We have a need to set labels dynamically in response to users setting their preferred language. We are attempting to do this with text fields, text areas and selects and have been defeated by the complexities of detecting notches, setting notch widths (there's some scaling we can't get our heads around) and so forth.

Proposed solution

This is more of a question than a solution and we seek your advice. Is this:

  1. Something worthy of a feature request whereby (perhaps in the adapters) you provide a setLabel() function, or
  2. Should we aim to just rebuild our components in the DOM when this happens?

We would of course be delighted if the answer were number one!.

allan-chen commented 3 years ago

Hi Simon,

setLabel() seems reasonable to support. Moving this to backlog.