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

Is it possible to alter the styling of <flowruntime-flow>? #1

Open
avinkrisv opened this issue Feb 20, 2025 · 0 comments
Open

Is it possible to alter the styling of <flowruntime-flow>? #1

avinkrisv opened this issue Feb 20, 2025 · 0 comments

Comments

@avinkrisv
Copy link

Something like this -

` handleFlowRender() {
const flowElement = document.querySelector('flowruntime-flow'); // Select the element
console.log('flowElement',flowElement)

    // // Set individual styles
    // flowElement.style.backgroundColor = '#e2abab';
    // flowElement.style.padding = '20px';
    // flowElement.style.border = '1px solid black';

    // // Or set multiple styles at once
    // Object.assign(flowElement.style, {
    //     backgroundColor: 'lightblue',
    //     padding: '20px',
    //     border: '1px solid black'
    // });
}`

For some reason flowElement is always null no matter when i run this (inside renderedCallback() or using on DOMContentLoaded listener)

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