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

Cannot format Message field. #9

Open
jamiegau opened this issue Apr 26, 2024 · 0 comments
Open

Cannot format Message field. #9

jamiegau opened this issue Apr 26, 2024 · 0 comments

Comments

@jamiegau
Copy link

Hi,
I am using the Message element to show the errors in the submitted form.

I am unable to CSS format this element.
for example

<div class="invalid-feedback">
  <Message name="username">
</div>

The Message.svelte component in your project, has a set style (14px), I am trying to override that style without success.

Using...

<style>
    .invalid-feedback {
        font-size: 1.8em !important;
    }
</style>

I have tried replacing your Message.svelte file with my own, and that kind of works. But it's messy.
What is the correct method from your perspective as the library creator?

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