We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Please search for duplicate or closed issues first.
When I use a label tag in <form role="group"> it doesn't look as it should
label
<form role="group">
Vue 3 code:
<template> <main class="container"> <form role="group"> <label> Calculator <input type="text" placeholder="0" v-model="userInput" /> <input type="button" value="=" @click="calculate" /> </label> </form> </main> </template>
It's supposed to look something like this but with a label:
https://codepen.io/ASOwnerYT/pen/VwERGRP
Chrome 113.0.5672.127 (32-bit) Windows 10
The text was updated successfully, but these errors were encountered:
I am also facing thiss issue on Pico v1.x.y.
Sorry, something went wrong.
@ASOwnerYT, @pattnaik-soumitri, You could use legend:
legend
<form> <fieldset> <legend>Subscribe to our newsletter</legend> <div role="group"> <input name="email" type="email" placeholder="Enter your email" autocomplete="email" /> <input type="submit" value="Subscribe" /> </div> </fieldset> </form>
Looks like the grouping needs to be done on the parent element of the input tags. The solution is to use a div to group the input boxes.
input
div
<form> <label> Label <div role="group"> <input type="text" placeholder="0" v-model="userInput" /> <input type="button" value="=" @click="calculate" /> </div> </label> </form>
Tested and working on v2.0.6
No branches or pull requests
Please search for duplicate or closed issues first.
Describe the issue
When I use a
label
tag in<form role="group">
it doesn't look as it shouldCurrent Behavior
Vue 3 code:
Expected Behavior
It's supposed to look something like this but with a label:

Reproduction URL
https://codepen.io/ASOwnerYT/pen/VwERGRP
Environment
Chrome 113.0.5672.127 (32-bit)
Windows 10
The text was updated successfully, but these errors were encountered: