Skip to content

[NuGet.org Bug]: Checkboxes have different "styles" #10407

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

Open
robertmuehsig opened this issue Apr 16, 2025 · 4 comments
Open

[NuGet.org Bug]: Checkboxes have different "styles" #10407

robertmuehsig opened this issue Apr 16, 2025 · 4 comments

Comments

@robertmuehsig
Copy link
Contributor

Impact

It bothers me. A fix would be nice

Describe the bug

Hi,

I noticed that some checkboxes uses the wrong style. I guess this is how the checkbox should be appear:

Image

Notice the "white"-checkmark and the focus around the checkbox + label.

Some checkboxes, like the "unlist" checkbox, are currently look like this:

Image

Notice the "black"-checkmark (which is hard to see) and the focus is only around the checkbox, but not the label.

The reason behind the issue is, that the structure is wrong on these checkboxes, e.g.:

                        <div class="row-checkbox-label">
                            @Html.ShowCheckboxFor(package => package.Listed, customClass: "brand-checkbox")
                            @Html.ShowLabelFor(package => package.Listed, "List in search results.", isrequired: false)
                        </div>

...should be...

                        <div class="row-checkbox-label">
                            <label class="brand-checkbox">
                                @Html.ShowCheckboxFor(package => package.Listed)
                                <span>List in search results.</span>
                            </label>
                        </div>

... which would result in this:

Image

I assume that all ShowCheckboxFor...(customClass: "brand-checkbox") are affected by this issue:

Image

Repro Steps

Try to unlist some packages - the checkbox is not correct.

Expected Behavior

"Readable" checkboxes.

Screenshots

No response

Additional Context and logs

I would be happy to fix this with a PR (if my analysis is correct and the proposed fix looks good to you).

@erdembayar
Copy link
Contributor

@ryuyu
Is this issue could our accessibility CSE address?

@robertmuehsig
Copy link
Contributor Author

@erdembayar I could send you a PR for this issue if you want. Just wanted to ask first if my analysis is correct.

@erdembayar
Copy link
Contributor

@erdembayar I could send you a PR for this issue if you want. Just wanted to ask first if my analysis is correct.

Currently waiting for @ryuyu to take a look, I'm not really familiar with this accessibility requirements.

@ryuyu
Copy link
Contributor

ryuyu commented May 1, 2025

This looks like a real issue. Great catch @robertmuehsig!
If you want to send a PR for this, please feel free and tag me directly and I'll pull it in.
If not, we will pick it up soon.

Really appreciate the report!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants