-
Notifications
You must be signed in to change notification settings - Fork 600
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove prescriptive rendering of FASTSelect and adds placeholder content #6732
Conversation
Thanks for the PR @brianchristopherbrady - there’s a lot of changes here so it’ll take a bit to dig in and sift through this. I’m going to also ping @radium-v as he put a ton of work into ensuring these were accessible and worked as one might expect similar to a select (and combobox) and his feedback would be valuable here. |
…https://github.com/brianchristopherbrady/brianbradyFastUI into user/brianbrady/select-remove-prescriptive-rendering
Holding for review |
For placeholder, I'd like to see a solution that more closely matches how it's handled with the native
All of this would enable the ability to set a placeholder attribute with very little additional logic. <fast-select placeholder="Select an option">
<!-- options -->
</fast-select> |
@radium-v |
…https://github.com/brianchristopherbrady/brianbradyFastUI into user/brianbrady/select-remove-prescriptive-rendering
@chrisdholt @radium-v Are there any updates on when these changes are expected to go in? |
@MaiLeeTR Just waiting on some approvals! |
@chrisdholt @radium-v @brianchristopherbrady |
…ng preventDefault(). Added check for 'e.defaultPrevented'
@rinaok Hi! I have dedicated time for this task now so just a matter of getting follow up reviews from people. I've pinged the discord server and it's getting some attention now. No definitive answer but I would say no later then next week. |
Just for awareness, we can't ensure this unless we've validated this meets all requirements, does not regress a11y, etc. Appreciate the PR - but timing is dependent on that being done and getting approval for the implementation. |
@brianchristopherbrady - Just checking in again to see if there are any updates to gauge if we should customize a solution on our end instead. |
I'm sorry I missed the issue you opened for this, or I would have provided this feedback then. The main concern here is complicated by the history of poorly designed and outdated native elements. One of the motivations of the Foundation components was to augment native elements to make them more convenient, but to maintain the same interface as their native counterpart. This is obviously a long-term view, and one that is countered by the standards evolving another direction, like adding I agree with the addition of the I understand the intent behind the listbox mode, but it makes the template and the base class more prescriptive than it already is. Following my comments at the start, features like From a usability perspective, a multiple select collapsible (listbox mode) If we consider a change to this model, I propose simplifying the current components and removing the
It's possible I'm missing the intent here, so please help me to consider the use case that supports bundling these different modes into the |
Thanks for taking a look! I've gone ahead and opened up a PR for the placeholder feature. I need to touch base the fluent team to find out the use case for the multiple selection. |
Closing this, due to #6951 we are only putting in critical fixes or features. |
Pull Request
📖 Description
This PR aims to remove the prescriptive rendering of the
FASTSelect
as well as adding support for placeholder content.Added Placeholder Attribute and Functionality:
Removed Prescriptive Rendering when Multiple Attribute and Size Attribute are Present:
Introduce Listbox Mode:
Modified Keypress and Click Handlers:
Added Tests:
🎫 Issues
Remove Prescriptive Nature of the Select
👩💻 Reviewer Notes
📑 Test Plan
All current tests continue to pass. Added additional tests for coverage of additional features.
✅ Checklist
General
$ yarn change
Component-specific
Screenshots
FASTSelect multiple
FASTSelect listbox-mode
FASTSelect size