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: Component Style Not Applied Correctly #540

Open
prismvineeth opened this issue Oct 21, 2023 · 1 comment
Open

Bug: Component Style Not Applied Correctly #540

prismvineeth opened this issue Oct 21, 2023 · 1 comment

Comments

@prismvineeth
Copy link

I have a component with "margin-left": "10rem" . It is showing the margin correctly in the Form builder preview. When I render the same form using formio/react, it is not applying the margin. In browser console it shows

element.style {
}

In the network tab I can see

                    "style": {
                        "margin-left": "10rem"
                    }

Am I missing something ?

I am using "@formio/react": "^5.3.0" and in the index I have added

    <link rel='stylesheet' href='https://unpkg.com/formiojs@latest/dist/formio.full.min.css'>
    <link rel='stylesheet' href='https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css'>
    <link rel='stylesheet' href='https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css'>
@prismvineeth prismvineeth changed the title Bug: Component Not Applied Correctly Bug: Component Style Not Applied Correctly Oct 24, 2023
@brendanbond
Copy link
Contributor

Where are you adding the style param? In the form builder, or?

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

2 participants