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 Report] Outlined text field in radio-group's label slot does not align correct #9864

Closed
mseele opened this issue Dec 3, 2019 · 8 comments
Assignees
Labels
C: VRadio VRadio T: bug Functionality that does not work as intended/expected
Milestone

Comments

@mseele
Copy link
Contributor

mseele commented Dec 3, 2019

Environment

Vuetify Version: 2.1.12
Vue Version: 2.6.10
Browsers: Chrome 78.0.3904.108
OS: Windows 10

Steps to reproduce

Having a v-textfield with style outlined inside a radio group does not look correct.

Expected Behavior

textfield and label should be aligned correct

Actual Behavior

Having a v-textfield with style outlined inside a radio group does not look correct.
If textfield is inside radio v-slot:label, the whole textfield and the label is to high.
If textfield just comes after radio, only label is rendered to high.

v-textfield without style outlined looks correct

Reproduction Link

https://codepen.io/mseele/pen/wvBBvgZ

@ghost ghost added the S: triage label Dec 3, 2019
@jacekkarczmarczyk jacekkarczmarczyk added C: VTextField VTextField C: VRadio VRadio T: bug Functionality that does not work as intended/expected and removed C: VTextField VTextField S: triage labels Dec 4, 2019
@benjamindedonder

This comment has been minimized.

@Kotoriii

This comment has been minimized.

@dalholm
Copy link

dalholm commented Jan 3, 2020

@mseele
I had the same issue, but i find o good solution in the docs.

<v-card-text>
      <v-row align="center">
        <v-radio value="answer_a" hide-details class="shrink mr-2 mt-0"></v-radio>
        <v-text-field label="Include files"></v-text-field>
      </v-row>
</v-card-text>

Look here: https://vuetifyjs.com/en/components/selection-controls#checkboxes-inline-with-a-textfield

@benjamindedonder

This comment has been minimized.

@jacekkarczmarczyk
Copy link
Member

First issue (input not in label slot) was fixed in 2.2.2, but when the input is placed in the label slot it changed a bit:
https://codepen.io/jkarczm/pen/NWPMgOP

@jacekkarczmarczyk jacekkarczmarczyk changed the title [Bug Report] Outlined text field inside a radio-group does not align correct [Bug Report] Outlined text field in radio-group's label slot does not align correct Jan 11, 2020
@johnleider
Copy link
Member

The label alignment issues have been resolved. In regards to the margin under the radio in the custom row implementation, just apply the mb-0 class: https://codepen.io/johnjleider/pen/VwYNrwM

If you have any additional questions, please reach out to us in our Discord community.

@johnleider johnleider self-assigned this Jan 27, 2020
@johnleider johnleider added this to the v2.2.x milestone Jan 27, 2020
@jacekkarczmarczyk
Copy link
Member

For https://codepen.io/jkarczm/pen/NWPMgOP see #10360 (workaround may not work though, needs to be more specific to not affect text-field's label)

@carlosbertarinijr
Copy link

Try this:
.v-input--selection-controls.v-input .v-label { top: 'your heigth' !important; }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C: VRadio VRadio T: bug Functionality that does not work as intended/expected
Projects
None yet
Development

No branches or pull requests

7 participants