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

builtInStyles: cfWidth class not passed to component #536

Open
samiresua opened this issue Mar 31, 2024 · 2 comments
Open

builtInStyles: cfWidth class not passed to component #536

samiresua opened this issue Mar 31, 2024 · 2 comments

Comments

@samiresua
Copy link

For example:

The following doesn't pass a width class to the component it is assigned to
builtInStyles: ['cfWidth']

A work around im currently using it to use the default value syntax as shown below, however this seems to stop working if builtInStyles has any kind of value (anything apart from undefined) - meaning if i try to turn off margin (ie - builtInStyles: []) it stops working again.

variables: {
    cfWidth: {
        displayName: 'Width',
        type: 'Text',
        group: 'style',
        defaultValue: 'fill'
    }
}
@elylucas
Copy link
Member

Hi @samiresua, when you say "passed to component", do you mean applied to the components css or passed in as a prop? The cfWidth variable is meant to set the components css width value, and does not get passed in as a prop to the component.

@sami616
Copy link

sami616 commented Apr 11, 2024

Sorry, I mean that the className that is passed to my component doesn’t update when cfWidth is changed. Meaning the width never changes. 👍

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

3 participants