-
Notifications
You must be signed in to change notification settings - Fork 9.8k
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
IsCheckbox based on role and not only for input DOM elements #27030
Conversation
This looks great to me. Thanks @vertonghenb! We should be able to merge this to |
@SteveSandersonMS I know we're in the final stages of 5.0 but is it still possible to get this in 5.0? |
Unfortunately not. 5.0 is locked now apart from any massive issues like security fixes. We definitely wouldn't get approval to reset the whole 5.0 rollout process for adding support for a new scenario. |
Perfectly understandable, thanks for considering! |
@vertonghenb I was in the process of getting this ready to merge when I noticed it looks like there's slightly more involved in making this really work with I think what's needed is:
I know this complicates what you're proposing quite a bit, but we can't really take a change that doesn't have corresponding E2E tests otherwise we lose track of what the product actually does and can't detect if we regress it. And adding a meaningful E2E test pretty much relies on actually referencing Are you still interested in implementing the rest of this? If so that's great. If not, that's totally fine too and we'd put it on the backlog for .NET 6, since having solid integration with |
@SteveSandersonMS
I created an integration not so long ago, wrapping the components the only 3 which are having issues so far is the
I'll check what I can do there, some help might needed.
Actually... the E2E page is already here, we can move it if you like. GitHub: https://github.com/Append-IT/Blazor.Fast |
There's already a E2E test setup for Blazor in this repo, so we'd need the new E2E tests to conform to that pattern. I think we'd be trying to show that the underlying web components (such as |
While supporting FAST specifically is a good place to start I think that Blazor should aim to support most web component implementations. I think using role is an acceptable constraint to force on component developers in this situation though. |
Hi @vertonghenb. |
To use Fluent or Fast WebComponents which doesn't use an
input
element as a checkbox this is needed. A checkbox can now also be based on arole
attribute and not only on ainput
element with thetype='checkbox'
.The
fast-switch
component has the same issue, but it's possible to override therole='checkbox'
to also make this possible.e.g.
<fast-switch role='checkbox'>Switch</fast-switch>
Fixes #24916