Skip to content
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

[Bug]: checkbox alignment (firefox only) #992

Open
2 tasks
mschro3der opened this issue Jan 6, 2025 · 0 comments
Open
2 tasks

[Bug]: checkbox alignment (firefox only) #992

mschro3der opened this issue Jan 6, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@mschro3der
Copy link

Reproduction

https://www.shadcn-vue.com/examples/tasks.html

Describe the bug

Selecting & deselecting the checkbox leads to a different positioning - within a table row (header & content alike).

Default state

image

Checked state (in firefox)

image

Checked state (in chrome)

image

In chrome the alignment seems to be correct.

Possible solution: Add class flex to CheckboxRoot (Or does this have possible negative effects on other browsers?)

(This does not seem to be noticeable otherwise, as a checkbox is usually used in combination with a label - but the problem does not exist here).

System Info

System:
    OS: Linux 6.8 Ubuntu 22.04.5 LTS 22.04.5 LTS (Jammy Jellyfish)
    CPU: (8) x64 Intel(R) Core(TM) i7-10510U CPU @ 1.80GHz
    Memory: 15.49 GB / 31.12 GB
    Container: Yes
    Shell: 5.1.16 - /bin/bash
  Binaries:
    Node: 20.16.0 - ~/.nvm/versions/node/v20.16.0/bin/node
    npm: 10.8.3 - ~/.nvm/versions/node/v20.16.0/bin/npm
    pnpm: 9.15.0 - ~/.local/share/pnpm/pnpm
    bun: 1.1.24 - ~/.bun/bin/bun
  Browsers:
    Brave Browser: 131.1.73.104
    Chrome: 131.0.6778.204

Contributes

  • I am willing to submit a PR to fix this issue
  • I am willing to submit a PR with failing tests
@mschro3der mschro3der added the bug Something isn't working label Jan 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant