Any radio button that has a switcher class
When we click No
label, the button will be checked and the label changed to Yes,
as well as when we click Yes
label, the button will be off, and the label changed to No
When we click No
label, the button will be checked, and label changed to Yes,
but when we click Yes
label, nothing will be changed.
Labels |
Added:
?
|
Please think like a user, not a developer
Think like a developer and you would see that its a bug
Maybe there some a11y issue, I don't know
Dont blame a11y for everything. This bug actually breaks accessibility
I don't know, whether this is a bug or not (As a developer). Maybe there some reasons for doing this way.
But as a user, I will definitely consider it as a bug
To be absolutely clear - clicking on any of the labels should change the state
It uses two inputs (what for?) and two labels.
How else do you have two radio
I suppose it happens because of the "No" label overlaps the "Yes" label.
I think it's better to remake a radio button at all.
Please dont
Please dont
Ok, I will try to search another ways to solve the issue =)
It uses two inputs (what for?) and two labels. I suppose it happens because of the "No" label overlaps the "Yes" label.
I think it's better to remake a radio button at all.
Oops, I got my error, for some reason I was thinking that the radio button is a checkbox button. I feel so ashamed.
I gotta be more careful. Please never mind..
How else do you have two radio
With a single button. Button can have a boolean value (0/1, true,false, etc) and also is better for A11Y with aria-pressed, eg
<button type="button" aria-pressed="true">
Notify by email
</button>
There's a nice explanation: https://www.smashingmagazine.com/2017/09/building-inclusive-toggle-buttons/
or you can check my dark theme swither live: https://codepen.io/dgrammatiko/pen/bGNXVQQ?editors=1010
repo: https://github.com/dgrammatiko/dark-switch
but then thats not b/c in any way and forces changes that are not required on everyone.
anyway the issue here is that it used to work correctly and now it doesnt
@brianteeman my response was purely educational and I was responding to the gsoc student. I'm not suggesting such a change at this point of j4...
My bad: I quoted the wrong text in my reply
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2021-05-21 18:19:53 |
Closed_By | ⇒ | richard67 |
@rjharishabh can you please tell how did you make the gif?
@rjharishabh can you please tell how did you make the gif?
@eopws I just convert mp4 to gif online
@rjharishabh can you please tell how did you make the gif?
Use licecap - it is free and available for all operating systems
@rjharishabh @brianteeman, thanks
Think like a developer and you would see that its a bug
Dont blame a11y for everything. This bug actually breaks accessibility