Closed radium-v closed 1 week ago
This pull request is automatically built and testable in CodeSandbox.
To see build info of the built libraries, click here or the icon next to each commit SHA.
Should we pull the label from within the control with this change?
This will need to be pointed to master
as we've merged the v3 branch :)
✅ No changes found
Should we pull the label from within the control with this change?
@chrisdholt due to cross-root ARIA limitations, the label has to be part of the component.
I gave a custom contenteditable
approach a shot (https://github.com/radium-v/fluentui/tree/users/radium-v/web-components-v3-text-input-contenteditable), but it would limit our ability to use different types like email
and url
without specific implementations. I don't trust that any custom alternative to <input type=password>
would be as secure as the native control.
Previous Behavior
Currently, form-associated custom elements use the
FormAssociated
class mixin. This mixin is heavy and duplicative, being copied wholesale for every component which utilizes it. WhileFormAssociated
includes minimal support forElementInternals
, the implementation isn't fully baked.New Behavior
Improvements:
<fluent-text-input>
custom element to useElementInternals
by default. An optional polyfill may be added in the near future, as more components transition to use ElementInternals.TextInput
component.