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: inconsistent application of class attributes to different components #70

Open
this-gavagai opened this issue May 24, 2023 · 0 comments

Comments

@this-gavagai
Copy link

this-gavagai commented May 24, 2023

There is significant inconsistency in how various components apply class attributes. For example, consider the following code:

<div class="grid grid-12 gap-2">
  <Input label="Input" class="col-span-12" />
  <Input label="Input 2" class="col-span-6" />
  <Input label="Input 3" class="col-span-6" />
  <Autocomplete
    label="Autocomplete"
    :options="[
      { label: 'One', value: '1' },
      { label: 'Two', value: '2' },
    ]"
    class="col-span-6"
  />
  <DatePicker label="Date Picker" :formatValue="(val) => val" class="col-span-6" />
</div>

This produces a layout that looks like this:
Screenshot 2023-05-24 at 10 25 10 AM

The expected behavior would be for the Autocomplete and DatePicker components to behave the same way that Input components do.

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