Replies: 1 comment
-
An example implementation of this can be seen here: This demo is based on It's also worth noting that we needed to provide a class on the |
Beta Was this translation helpful? Give feedback.
-
An example implementation of this can be seen here: This demo is based on It's also worth noting that we needed to provide a class on the |
Beta Was this translation helpful? Give feedback.
-
Proposal
Forge form fields (text-field, select, chip-field) all provide a common
addon-end
slot currently. When disabled, this slot inherits the disabledbackground-color
andpointer-events
styles. This presents two problems: 1) interactive elements placed within the slot appear visually disabled even if they aren't and 2) it can be confusing for developers if they assume those slotted interactive elements are disabled when they should technically be responsible for synchronizing the disabled state.The proposal here is to disconnect the
addon-slot
from receiving the disabled state styles that are applied to the<input>
andleading
andtrailing
slots. This will require some adjustment to the default DOM structure and styles.Benefits
addon-end
slot.addon-end
slot would now become truly an "addon" and the slotted content would now be more obvious for developers to control the disabled state themselves.Caveats
trailing
slot instead.Beta Was this translation helpful? Give feedback.
All reactions