-
-
Notifications
You must be signed in to change notification settings - Fork 6.9k
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
[Documentation] v-btn
usage example should hide default slot output when using the icon prop
#19816
Comments
This is working as intended. I will say however that there could probably be some pointers updated about this in the docs for clarification (and usage example should probably be fixed to hide default slot output when using the icon prop) |
The explanation makes sense and as I created this issue, I figured it was most likely functioning as designed & there was a bug with the documentation. In respect of
What I was suggesting is that when using the For example: |
That sounds more like a feature request to have All in all |
Agreed, that would be a feature request. On that note, considering the details you've provided, I completely agree with you and I would view this issue as resolved with if the usage example were to hide the default slot output when using the icon prop. |
v-btn
with an icon doesn't actually render the icon if the v-btn
includes text inside of itv-btn
usage example should hide default slot output when using the icon prop
Environment
Vuetify Version: 3.6.6
Vue Version: 3.4.27
Browsers: Edge 124.0.0.0
OS: Windows 10
Steps to reproduce
Add a
v-btn
with the icon along with some text within it, such as the example shown on the documentation.Expected Behavior
v-btn
icon to render the icon.Actual Behavior
The
v-btn
icon does not appear and instead it renders the text in place of the icon resulting with thev-btn
being round.Reproduction Link
https://play.vuetifyjs.com/#...
Other comments
v-btn
it renders the icon, & I can add the text via the text prop but it doesn't output that text, which this use case seems like a perfect example for handling accessible labels:<v-btn icon="$vuetify" text="button"></v-btn>
The text was updated successfully, but these errors were encountered: