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

Customize gap on Alert #760

Closed
MichaelSchmidle opened this issue Sep 29, 2023 · 1 comment
Closed

Customize gap on Alert #760

MichaelSchmidle opened this issue Sep 29, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@MichaelSchmidle
Copy link

MichaelSchmidle commented Sep 29, 2023

Description

The Alert element gives a decent amount of style customization options. What's missing, is the option to change the gap in the parent element. It's currently fixed to gap-3.

<div class="items-start flex gap-3" data-v-inspector="node_modules/@nuxt/ui/dist/runtime/components/elements/Alert.vue:3:5"></div>

It becomes visible when using an alert icon. The gap-3 works well together with the default padding preset of p-3. However, with different paddings, gap-3 seems odd.

I'd like to have the ability to define padding and gap via presets. Thanks!

Additional context

Here's how it looks slightly off with the default fixed gap-3 and customized padding p-2:

image

Padding p-2 is necessary to line up the icons of the alert and the form inputs. The description of the alert however doesn't line up with the border of the form icons below. Seems like a small detail, but when fixing it via developer tools in the browser from gap-3 to gap-2, it looks better:

image

@MichaelSchmidle MichaelSchmidle added the enhancement New feature or request label Sep 29, 2023
@MichaelSchmidle
Copy link
Author

Thanks so much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant