-
Notifications
You must be signed in to change notification settings - Fork 19
Add label to the autocomplete component #1156
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice 🚀
Breaking change should be fine (since my theming PR breaks some stuff anyways and we'll have to release;) |
Would it be possible to use the oc-text-input component in here? Because in this case we actually want to display a form input... |
We could do that, yeah. A few thinks that would mean:
|
All the attributes you assign to a But still, I'm fine with keeping the dedicated input. Could you copy the styles of the |
Ahh yes, you're right :)
I actually like the idea of using |
True :-) Didn't think about that.
Yep, makes sense. :-) proper styling for the custom input is good 👍 |
Alrighty, done! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
😍
Adding the label "from the outside" is not a11y compliant as you cannot get the id of the actual input element which therefore cannot be referenced via
for
. This is a breaking change though as I renamedaria-label
tolabel
. We could leave it, but technically it's not aria anymore now.This change also removes all the unnecessary prefixes which were used in the component.
Needed for owncloud/web#4329: