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

Icon button colour consistency #38

Closed
kirsty-hames opened this issue Jan 9, 2023 · 6 comments
Closed

Icon button colour consistency #38

kirsty-hames opened this issue Jan 9, 2023 · 6 comments
Labels
question Further information is requested

Comments

@kirsty-hames
Copy link
Contributor

For consistency with the top bar navigation, should icon buttons be using the nav icon color variables?

Currently:

  &__btn.btn-icon:not(.btn-text) {
    padding: @icon-padding;
    background-color: @btn-icon-color;
    color: @btn-icon-color-inverted;
    border-radius: @btn-border-radius;

    .no-touch &:not(.is-disabled):not(.is-locked):hover {
      background-color: @btn-icon-color-hover;
      color: @btn-icon-color-inverted-hover;
      .transition(background-color @duration ease-in, color @duration ease-in;);
    }

Proposing:

  &__btn.btn-icon:not(.btn-text) {
    padding: @icon-padding;
    background-color: @nav-icon;
    color: @nav-icon-inverted;
    border-radius: @btn-border-radius;

    .no-touch &:not(.is-disabled):not(.is-locked):hover {
      background-color: @nav-icon-hover;
      color: @nav-icon-inverted-hover;
      .transition(background-color @duration ease-in, color @duration ease-in;);
    }
@kirsty-hames kirsty-hames added the question Further information is requested label Jan 9, 2023
@kirsty-hames
Copy link
Contributor Author

Related to adaptlearning/adapt-contrib-core#386

@swashbuck
Copy link
Contributor

@kirsty-hames More often than not, we style the Page Nav buttons to resemble other buttons (ex. question submit button). The navigation buttons usually have their own look & feel. So, I'm fine with how it is now.

Not sure what others usually do, though? @guywillis @StuartNicholls

@guywillis
Copy link
Contributor

More often than not, the page nav buttons are styled to be the same style as the question submit, menu item etc.

I guess the discussion here is whether the page nav buttons following the navigation style is more intuitive than following the aforementioned buttons.

My preference would be to keep them inline with content buttons.

@StuartNicholls
Copy link
Contributor

To me pagenav buttons are UI buttons, I'm struggling to see them any other way, so my thoughts are based on this. @guywillis , do you see these buttons as more 'contenty'?

So, given the above, from a UX perspective, I'd have thought the pagenav buttons should be styled like the other UI/navigation buttons. Additionally, I think its good UX practice to make navigation buttons have a lower prominence to action buttons (content buttons) generally speaking.

@oliverfoster
Copy link
Member

Is the nav button styling contingent on the nav background?

@oliverfoster
Copy link
Member

closing until resolution of adaptlearning/adapt-contrib-core#386

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

5 participants