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

Applying hide-details causes the component to misalign #112

Open
fitzhavey opened this issue Jul 5, 2023 · 0 comments
Open

Applying hide-details causes the component to misalign #112

fitzhavey opened this issue Jul 5, 2023 · 0 comments

Comments

@fitzhavey
Copy link

fitzhavey commented Jul 5, 2023

As the title says, things misalign when hide-details is given. I'm using this in a custom input with my own label and error messages, so please disregard those.

Without:

<phone-selector
  v-model="internalValue"
  :inputOptions="{ tabindex: 4 }"
  mode="international"
  :valid-characters-only="true"
  :preferredCountries="['GB', 'US', 'AE']"
  outlined dense filled label/>

Screenshot 2023-07-05 at 03 23 44

With:

<phone-selector
  v-model="internalValue"
  :inputOptions="{ tabindex: 4 }"
  mode="international"
  :valid-characters-only="true"
  :preferredCountries="['GB', 'US', 'AE']"
  outlined dense filled label
  hide-details/>

Screenshot 2023-07-05 at 03 23 57

Workaround

It looks like something about the country code is causing it, I'm on version 1.5.3.
Screenshot 2023-07-05 at 03 26 02

It displays ok for me as long as I set the following in the parent's (scoped) css:

.v-text-field__details {
  display: none;
}
.v-input__slot {
  margin-bottom: 0;
}

Screenshot 2023-07-05 at 03 30 03

@fitzhavey fitzhavey changed the title Applying hide-details causes the component to misalign [FILLING OUT CURRENTLY, SORRY] Applying hide-details causes the component to misalign Jul 5, 2023
@fitzhavey fitzhavey changed the title [FILLING OUT CURRENTLY, SORRY] Applying hide-details causes the component to misalign pplying hide-details causes the component to misalign Jul 5, 2023
@fitzhavey fitzhavey changed the title pplying hide-details causes the component to misalign Applying hide-details causes the component to misalign Jul 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant