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

Variables for buttons are not applied #26

Closed
ZhaniyaDautbekova opened this issue Jun 25, 2020 · 3 comments
Closed

Variables for buttons are not applied #26

ZhaniyaDautbekova opened this issue Jun 25, 2020 · 3 comments

Comments

@ZhaniyaDautbekova
Copy link

When configuring the buttons, I used the built-in Cuba platform styles: primary, default, danger, secondary
I configured colors according to these styles (screen 1), uploaded and added variables to the project (see screen 2, they are already filled in the demo stand)
on the 3rd screen the register button has a disabled class. Style for disabled button are not applied
helium
button-vars
image

Please check a issue.

@GlebDurygin
Copy link
Contributor

GlebDurygin commented Jun 25, 2020

Hello @ZhaniyaDautbekova!

I tried to reproduce your case, but everything was fine.

  • helium-ext.scss
    @mixin com_company_demo-helium-ext {
    /* Button */
    --button-primary-active-color: #EF7F1A;
    --button-primary-color: #EF7F1A;
    --button-primary-disabled-color: #FAC08C;
    --button-primary-disabled-text-color: #FFFFFF;
    --button-primary-focused-border-color: #EF7F1A;
    --button-primary-hover-color: #EF7F1A;
    --button-primary-text-color: #FFFFFF;
    }
    
  • Xml descriptor
    <?xml version="1.0" encoding="UTF-8" standalone="no"?>
    <window xmlns="http://schemas.haulmont.com/cuba/screen/window.xsd"
          caption="msg://newScreen.caption"
          messagesPack="com.company.demo.web.screens">
        <layout>
            <vbox spacing="true">
                <button caption="Disabled Btn" enable="false" stylename="primary"/>
                <button caption="Enable Btn" stylename="primary"/>
            </vbox>
        </layout>
    </window>
    
  • Result
    image

We have a forum for such questions. Please create a topic there, it will be more convenient.
Also, please attach a screenshot from the devTools browser, where the style applied to the disabled button will be visible.
Example:
image

Regards,
Gleb

@ZhaniyaDautbekova
Copy link
Author

can you check also for action button?
image

@web-devel
Copy link
Member

Hi @ZhaniyaDautbekova , thanks for the feedback. I've already created an issue in helium-theme repository.

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