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

RadioButton: When scale is applied, radio is not properly drawn #6927

Open
Pijuli opened this issue Dec 5, 2024 · 1 comment
Open

RadioButton: When scale is applied, radio is not properly drawn #6927

Pijuli opened this issue Dec 5, 2024 · 1 comment
Labels
Resolution: Help Wanted Issue or pull request requires extra help and feedback

Comments

@Pijuli
Copy link

Pijuli commented Dec 5, 2024

Describe the bug

If scale is applied as stated in the docs, the radio is misplaced
https://primevue.org/theming/styled/#scale

Reproducer

https://stackblitz.com/edit/b37yw9?file=src%2FApp.vue

PrimeVue version

4.2.3

Vue version

4.x

Language

TypeScript

Build / Runtime

Nuxt

Browser(s)

All. Any.

Steps to reproduce the behavior

<RadioButton v-model="type" input-id="preparation" name="preparation" value="preparation" /> <label for="preparation">{{ t('preparation') }}</label>

Place a RadioButton and change html font size to 14px

html { font-size: 14px; }
image

I have to fix it forcing p-radiobutton-box to 20px instead of 21px that is being calculated

.p-radiobutton-box { height: 20px !important; width: 20px !important; }

You can check it in the reproduction, that is actually the example from your docs. Some are ok, some are not.
image
image

Expected behavior

image

@Pijuli Pijuli added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Dec 5, 2024
@tugcekucukoglu tugcekucukoglu added Resolution: Help Wanted Issue or pull request requires extra help and feedback and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels Dec 10, 2024
Copy link

Due to PrimeVue team's busy roadmap, this issue is available for anyone to work on. Make sure to reference this issue in your pull request. ✨ Thank you for your contribution! ✨

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution: Help Wanted Issue or pull request requires extra help and feedback
Projects
None yet
Development

No branches or pull requests

2 participants