Originally submitted on Github with significant input from Andrew MacPherson and @laurii

Problem/Motivation

Recent interviews and research exposed pain points around Drupal's admin experience of looking and feeling dated, especially compared to our competitors, and universally cited that choosing a more modern-looking admin theme instantly led to Drupal being better-perceived by said users.

There was an amazing community effort to Create a Style Guide For Seven that vastly improved its look + feel compared to the original, but Design best practices and Drupal functionality have moved on since then.

Proposed resolution

Implement new button styles to create a favorable first impression of Drupal for evaluators and a better user experience for site authors. No functional differences.

Specification

Quick overview

This image is just a quick overview for buttons specs. Please use the Figma link to full specification as the main resource for specifications.

buttons claro

Full specification

FIGMA: https://www.figma.com/file/OqWgzAluHtsOd5uwm1lubFeH/Design-system?node-i...
This link is anchored to the board with the full specification. As an anonymous user you can see the design, but to actually be able to pick colors and sizes please login on Figma.

General specs

Color palette
Typography

Remaining tasks

  • Update
  • patch styling to include time inputs
  • Accessibility review
  • RTL review (Right to Left)

User interface changes

All button styles will be changed, no functional differences.

Test Pages

  • /admin/content
  • /node/add/article (also image upload button)
  • /admin/content/files
  • /node/add/page
  • /admin/content/comment
  • /admin/structure/views/view/comment?destination=/admin/structure/views
  • /admin/people
  • /admin/people/create
CommentFileSizeAuthor
#85 buttonScreenshots-high-contrast--3021087-85.zip2.12 MBhuzooka
#85 buttonScreenshots--3021087-85.zip24.45 MBhuzooka
#85 interdiff-3021087-82-85.txt3.38 KBhuzooka
#85 claro-buttons-3021087-85.patch16.31 KBhuzooka
#85 Screenshot 2019-04-18 at 15.50.51.png24.02 KBhuzooka
#85 Screenshot 2019-04-18 at 15.45.56.png26.4 KBhuzooka
#82 interdiff.txt2.45 KBlauriii
#82 claro-buttons-3021087-82.patch17.53 KBlauriii
#78 interdiff.txt2.17 KBlauriii
#78 claro-buttons-3021087-78.patch16.06 KBlauriii
#76 IE11-hc-with-suggested-changes.png135.15 KBhuzooka
#76 Firefox-hc-with-suggested-changes.png225.54 KBhuzooka
#76 IE11-hc-now-no-borders.png215.14 KBhuzooka
#76 Firefox-hc-now.mov1.52 MBhuzooka
#76 Firefox-hc-now-without-important.png31.29 KBhuzooka
#75 interdiff-without-rename.txt3.88 KBlauriii
#75 interdiff.txt9.4 KBlauriii
#75 claro-buttons-3021087-75.patch15.77 KBlauriii
#73 interdiff-69-73.txt1.11 KBimalabya
#73 claro-buttons-3021087-73.patch14.17 KBimalabya
#72 claro-buttons-3021087-72.patch14.16 KBimalabya
#69 interdiff.txt1.46 KBlauriii
#69 3021087-69.patch14.14 KBlauriii
#68 Firefox-3px-border-missing-if-focused.png65.84 KBhuzooka
#68 Firefox-3px-and-odd-borders.png64.17 KBhuzooka
#68 IE11-hc.png66.81 KBhuzooka
#64 diff_57-62.txt1.03 KBkostyashupenko
#62 claro-buttons-3021087-62.patch14.34 KBkostyashupenko
#62 interdiff_60-62.txt959 byteskostyashupenko
#60 claro-buttons-3021087-60.patch14.34 KBkostyashupenko
#57 buttonScreenshots--high-contrast--fixed.zip2.15 MBhuzooka
#57 buttonScreenshots.zip24.13 MBhuzooka
#57 interdiff-3021087-53-57.txt7.09 KBhuzooka
#57 claro-buttons-3021087-57.patch14.27 KBhuzooka
#56 button-vertical-margins.png38.17 KBckrina
#54 buttonScreenshots--high-contrast.zip1.76 MBhuzooka
#53 3021087-52.patch13.12 KBlauriii
#52 interdiff.txt949 byteslauriii
#52 3021087-52.patch13.12 KBlauriii
#52 3021087-52.patch13.09 KBlauriii
#51 01--Buttons--windows--MicrosoftEdge--he--merged.png74.3 KBhuzooka
#51 01--Buttons--iOS--Safari--he--merged.png229.25 KBhuzooka
#50 interdiff.txt1.68 KBlauriii
#50 3021087-50.patch12.45 KBlauriii
#49 interdiff.txt1.62 KBlauriii
#49 3021087-49.patch12.42 KBlauriii
#48 Screenshot 2019-02-28 at 15.33.33.png12.76 KBhuzooka
#46 3021087-46.patch11.11 KBlauriii
#43 buttons-3021087-43.patch10.8 KBKami Amiga
#39 interdiff_31_39.txt8.95 KBKami Amiga
#39 buttons-3021087-39.patch11.21 KBKami Amiga
#38 127.0.0.1_seven_incubator_public_html_buttons(Galaxy S5).png507.1 KBhuzooka
#38 127.0.0.1_seven_incubator_public_html_buttons.png296 KBhuzooka
#31 buttons-3021087-31.patch9.89 KBKami Amiga
#24 Buttons_focus_colors.png93.23 KBsaschaeggi
#20 buttons-focus-2px-outline-offset.png18.73 KBsaschaeggi
#13 buttons-focus.png7.62 KBckrina
#7 3021087-7.patch6.4 KBlauriii
buttons.png54.32 KBantonellasevero

Comments

antonellasevero created an issue. See original summary.

antonellasevero’s picture

Category: Feature request » Task
antonellasevero’s picture

Issue summary: View changes
antonellasev’s picture

Issue summary: View changes
saschaeggi’s picture

Version: » 8.x-1.x-dev
Issue tags: +buttons
lauriii’s picture

Assigned: Unassigned » lauriii

Working on this

lauriii’s picture

Status: Active » Needs review
StatusFileSize
new6.4 KB

Status: Needs review » Needs work

The last submitted patch, 7: 3021087-7.patch, failed testing. View results

modulist’s picture

The outline color for the focus and hover states are too close to the primary button color to be easily visible.
Recommendation: use a color in a different hue, like Drupal's lime green (#7cbc48) as the outline color for the primary color.

modulist’s picture

lauriii’s picture

Assigned: lauriii » Unassigned
ckrina’s picture

Assigned: Unassigned » ckrina
Issue tags: +Needs design

Thanks @modulist for all the accessibility comments&suggestions, here and in the other issues! :D

I'll work on a better design for this to try to solve it, and I'll review some suggestions @andrewmacpherson gave in the original Github issue.

ckrina’s picture

StatusFileSize
new7.62 KB

I made this variation based in @andrewmacpherson 's feedback on Github. Would something like this (separated from the background) work?

saschaeggi’s picture

@ckrina didn't we had this version before already? Looks also better visually to me.

ckrina’s picture

@saschaeggi Nope, we talked about it in a weekly meeting but it never got accessibility sign-off , so I'm not sure it's the correct approach . I guess that's why we didn't change the specs. :)

modulist’s picture

@ckrina #13 a clever way to get around having to change the outline color for a primary button. The real test is to look at a page that has this style and be able to tell immediately where the focus is.

If there's no obvious color difference with the button color, I'm afraid most of us would only see the focus when it changes. We humans are like animals that can't see their prey unless it's moving.

saschaeggi’s picture

@ckrina we can go ahead with this version, see @andrewmacpherson answer to this on github:

Yes, the button focus style is much better. The outline offset introduces an extra thin white line, so the button and focus indicator are now two separate graphic objects. This creates a stronger distinction, especially for the blue button, because there's now a shape change instead of just a size change.

Old Github issue

andrewmacpherson’s picture

#9:

Drupal's lime green

I think this is mixing up Claro with Drupal.org's bluecheese theme.

#7cbc48 only provides 2.29:1 contrast against white, so it won't satisfy WCAG 1.4.11 Non-text Contrast as a focus style.

https://contrast-ratio.com/#%237cbc48-on-white

It's a WCAG failure on Drupal.org, should file an issue about that.

andrewmacpherson’s picture

re #13:

The white line offset separating the button from the focus outline could benefit from being thicker. In the screenshot it's a hairline, and a thicker offset would be more obvious.

For example, instead of a 3px outline with a 1px outline-offset, it could be a 2px outli.e with a 2px offset.

Twitter.com has a button focus style very similar to this in the compose-tweet dialogue IIRC.

saschaeggi’s picture

StatusFileSize
new18.73 KB

@andrewmacpherson how about this? 3px outline with a 2px outline-offset:
3px outline, 2px offset

saschaeggi’s picture

Assigned: ckrina » Unassigned
andrewmacpherson’s picture

#20 is the sort of thing I meant, yes. The larger negative-space white offset contributes to a more distinct shape diffence. The focus ring feels more like a separate object that moves around the screen. The thicker offset also gives a more obvious striped appearance, for the blue button especially.

Thinking more about the colour idea that @modulist mentioned... one way to make focus styles really clear is to use a colour for the focus ring that isn't used anywhere else. The UK Virgin Media set-top box UI has an elegant example of this. Most of the UI is white text on plum and black backgrounds, but the thing that has focus gets (a) a red background, (b) a bright red border, (c) bigger, so it overspills the container, and (d) sometimes has an extra ">". Focus always uses this red style, and _nothing else_ uses red in the whole UI. (Except, some logos have red in them, but they aren't focusable.) A caveat is that this UI has no forms. Note that it doesn't rely on the red colour alone; the border and size change are other focus affordances.

If we wanted to do something similar, we'd need a distinct colour that wasn't used for anything else. Since we're using blue for links, and red for errors, so that broadly speaking leaves green. We're using yellow/amber and celadon green for messages, but there won't be many of those of the page. Maybe a more striking green could be used for focus like @modulist says.

The idea of using one colour for all focus styles, and only for focus styles, applies beyond just buttons though. It would mean a green focus ring on textfields, details/summary, selects, etc.

andrewmacpherson’s picture

What colour is the blue focus ring used here?

There's an error in the palette at #3017785: Designs for a new admin theme. There's a pale blue called "focus" which claims to be #00339a, but that's the code of "active" blue next to it.

WIth an eyedropper, I make the "focus" blue out as #A9CAF7. This only provides 1.68:1 contrast against white, so it doesn't satifsy WCAG 1.4.11 Non-text Contrast. The focus ring needs 3:1 contrast.

The focus rings in #20 aren't the same blue. The focus ring around the grey button is #3558cf2 which has contrast 3.27:1 against white, so that passes.

The focus ring around the blue button in #20 is #7da5f1, which has contrast 2.46 against white, not strong enough for WCAG.

saschaeggi’s picture

StatusFileSize
new93.23 KB

@andrewmacpherson the blue focus would be #5a8bed (3.31:1 contrast)

saschaeggi’s picture

@andrewmacpherson we'll work on a new version for the focus until end of the week.

andrewmacpherson’s picture

FWIW, I'm kind-of sitting on the fence about the @modulist's approach of a green (or whatever) focus colour. It's definitely a valid approach, if used in combination with size/shape changes like the offset outline. It can be a useful affordance for users with colour perception; follow-the-colour may well be the principle cue as @modulist says. But in terms of robustness for all sighted (and partially sighted) users, the non-colour aspects of focus style are the more important ones to put in place.

ckrina’s picture

Huge thanks for your suggestions @andrewmacpherson and @modulist ! We've been working with @saschaeggi and @Dennis Cohn because it's an issue that blocks for several components and it can be a huge improvement. So we've opened this one to discuss focus state in a broader way with other elements with examples: #3028099 and we'd love to know what do you think.

dennis cohn’s picture

In the issue Element focus: accessibility review we suggested a new focus color for all elements.
If this color is approved, we can update this issue with new screenshots!

Kami Amiga’s picture

Assigned: Unassigned » Kami Amiga
Kami Amiga’s picture

Status: Needs work » Needs review
StatusFileSize
new9.89 KB

WIP state : buttons active states and --secondary styles are not done yet. But at this state, I'd like to have your advice about the CSS file architecture I did. I used the :not for default button styles to avoid possible conflicts with the other styles. But maybe there's a better way to manage this...

Status: Needs review » Needs work

The last submitted patch, 31: buttons-3021087-31.patch, failed testing. View results

Kami Amiga’s picture

Status: Needs work » Needs review
nod_’s picture

I would check if we can increase specificity instead:

.button {}
/* then to override */
.button.button--primary {}

Using :not means we know all possible types of buttons, and we have no way of knowing the full list of button types.

dennis cohn’s picture

Using :not means we know all possible types of buttons, and we have no way of knowing the full list of button types.

I agree with @nod_
We should avoid using the :not selector. Also overrides the :not styles is only possible with !important and that's a propertie that we don't want to use

dennis cohn’s picture

  1. +++ b/css/src/components/buttons.css
    @@ -10,140 +10,168 @@
    +  border-radius: 0.125rem;
    

    Can we use a variable for this? If we want to change the border-radius for a reason, we only have to change the variable

  2. +++ b/css/src/components/buttons.css
    @@ -10,140 +10,168 @@
    +.button:not(.button--secondary) {
    

    avoid :not selector like @nod_ is saying

nod_’s picture

Status: Needs review » Needs work
huzooka’s picture

My (mostly visual) feedback for the patch in #31

  1. Link buttons (I mean <a class="button ..."/>) are higher than input buttons (<input type="submit" class="button ..."/>). Check out a confirm form, e.g. a node delete confirm.
  2. Small buttons are small even for devices with touch-events. I suggest keeping the original solution (inherited from seven)
  3. The space after the first button is smaller than the space between other buttons.
  4. I'd rather see .form-actions .button than .form-actions input
  5. Leading zeros

Chrome screeshots with patch #31 — LTR:
Buttons on OSX ChromeButtons on Android

Kami Amiga’s picture

StatusFileSize
new11.21 KB
new8.95 KB

Still WIP. Thanks for the review. @huzooka : I'll handle the changes you mentionned for the next .patch ;)

nod_’s picture

+++ b/css/src/components/buttons.css
@@ -10,140 +10,150 @@
+.button:disabled:active,

Is that possible? to me disabled element can't have focus/active.

lauriii’s picture

#38.1: We probably don't have to support link elements that have button class attached to them since they will be all deleted soon.

  1. +++ b/css/src/components/buttons.css
    @@ -10,140 +10,150 @@
      * Overrides styling from system.theme.
    

    What do we need these overrides for?

  2. +++ b/css/src/components/buttons.css
    @@ -10,140 +10,150 @@
    +.button.button--primary:hover {
    

    Selectors targeting modifiers shouldn't include the block element class in the selector. Therefore this could be just .button--primary:hover

Kami Amiga’s picture

@nod : from what I understand here -> https://developer.mozilla.org/en-US/docs/Web/CSS/:disabled it seems so, yes ! I've seen it was present in the seven buttons styles, does someone knows if there's a reason for this ?

@lauriii : the .link styles and the comment about overrides come from the original file. I don't know if they should stay ^^' About the inclusion of the block element class in the selector, it was to increase the specificity of the styles for "specific" button, as it seems we don't have a .button--default class available to distinguish the styles of the grey button from the others.

Kami Amiga’s picture

StatusFileSize
new10.8 KB

Update with spaces variables.

lauriii’s picture

Why do we have to increase the specificity for the variations? Wouldn't it be enough to rely that the overriding styles are placed later than the default styles?

nod_’s picture

Assigned: Kami Amiga » Unassigned

I know Kami won't have time short term

lauriii’s picture

Status: Needs work » Needs review
StatusFileSize
new11.11 KB

Next iteration. The previous patch didn't apply anymore so there's no interdiff. I added a global focus style based on the latest designs, as well as remove some of the old CSS.

huzooka’s picture

We have a nightwatch 'test' for generating screenshots. I'll get them and upload here in an hour.

huzooka’s picture

Status: Needs review » Needs work
StatusFileSize
new12.76 KB

Just a really quick review:

  1. Confirm form still looks the same as the screenshots at #38
  2. Spacing between the button is still wrong (node edit form), see #38
  3. <a class="button"> and <button class="button"> are still higher than <input class="button"> elements (edited) – 42px vs 48px for default size, 31px vs 34px for small size
  4. It would be nice to handle the case when buttons (in the same form action) break in more lines.

Back to NW.

lauriii’s picture

Status: Needs work » Needs review
StatusFileSize
new12.42 KB
new1.62 KB

In my opinion, we should support button class being added to a element, so I didn't fix those bugs.

lauriii’s picture

StatusFileSize
new12.45 KB
new1.68 KB

This makes the height consistent.

huzooka’s picture

Status: Needs review » Needs work
StatusFileSize
new229.25 KB
new74.3 KB

Re #50:

  1. RTL placement needs some work (buttons are not exactly aligned to right)
  2. I'd still add some default top/bottom spacing to buttons by default
  3. Confirm form looks funky on mobile (this is not so important, but it would be nice to handle the cancel link the same way as input)

Shots attached.

lauriii’s picture

Status: Needs work » Needs review
StatusFileSize
new13.09 KB
new13.12 KB
new949 bytes

This should address #51

lauriii’s picture

StatusFileSize
new13.12 KB

This is the correct version of the patch.

huzooka’s picture

Status: Needs review » Needs work
StatusFileSize
new1.76 MB

Generally, this is fine, but (Windows) high-contrast mode fails for IE11 and Edge – focus indication is completely missing in these browsers (for buttons).

Firefox adds a light-cyan background for focused <input type="submit" />, and draws border for the primary and danger version (no borders for links with the button CSS class).

IE11 does nothing.

Edge does nothing.

High-contrast screenshots attached (excluding Chrome)

huzooka’s picture

Assigned: Unassigned » huzooka
ckrina’s picture

Issue summary: View changes
Related issues: +#3028099: Element focus: accessibility review
StatusFileSize
new38.17 KB

Just FYI, we updated the styles for focus after #3028099 accessibility feedback and defined the vertical margins in Figma as @lauriii asked. These margins are just default and they should be easily overridden in specific situations.

huzooka’s picture

Assigned: huzooka » Unassigned
Status: Needs work » Needs review
StatusFileSize
new14.27 KB
new7.09 KB
new24.13 MB
new2.15 MB
  1. The main issue with high contrast was that .button:focus had an outline: none;. I removed it.
  2. Increased high-contrast outline width because 1px dotted wasn't too visible. It's 2px dotted now.
  3. I improved a bit Firefox's high contrast styles, but it's worse than without high contrast. And we cannot handle it (Firefox doesn't provide any kind of meta selector like --ms-high-contrast that ie or edge handles).
  4. Fixed the default button size as well, because it was 40px instead of 48px (from Figma).
  5. Applied some improvements for buttons inside .form-actions.
  6. Simplified focus style (mostly by re-sorting selectors).
  7. Removed vendor-prefixed appearances since it's managed by PostCSS.
  8. I'd consider adding the global focus styles (.page-wrapper *:focus, at the end of elements.css) in a standalone patch instead of smuggling it in in a component's feature.

Screenshots attached.

ckrina’s picture

Status: Needs review » Needs work

FYI main colors blue and grey for buttons have been changed in this issue: #3038948: Changing colors
Sorry to fix that in another issue, but it was a great opportunity to have a novice one.

lauriii’s picture

Issue tags: +Needs reroll
kostyashupenko’s picture

Status: Needs work » Needs review
Issue tags: -Needs reroll
StatusFileSize
new14.34 KB
kostyashupenko’s picture

It needs to be updated, accordance to #58 comment

kostyashupenko’s picture

StatusFileSize
new959 bytes
new14.34 KB
huzooka’s picture

@kostyashupenko, could you please provide an interdiff between #57 and #62? Its hard to check what changed there.

kostyashupenko’s picture

StatusFileSize
new1.03 KB

Only colours were updated.

huzooka’s picture

Status: Needs review » Reviewed & tested by the community

@kostyashupenko, thanks for your help!

RTBC.

lauriii’s picture

Status: Reviewed & tested by the community » Needs work
  1. +++ b/css/src/base/elements.css
    @@ -178,3 +178,16 @@ img {
    + * This will be active for some non-interactive elements in IE
    + * (but not in Edge), no idea how (or why).
    

    I can't reproduce this problem. Could someone try to reproduce this and post screenshot with the exact steps it takes to reproduce it?

  2. +++ b/css/src/components/buttons.css
    @@ -9,141 +9,137 @@
    +  border: 0 !important; /* 2 */
    

    Buttons don't really look like buttons in high contrast mode without a border. How about we set this to border: 1px solid transparent;?

  3. +++ b/css/src/components/buttons.css
    @@ -9,141 +9,137 @@
    +.button:last-child {
    +  margin-right: 0;
    +}
    ...
    +[dir="rtl"] .button:last-child {
    +  margin-left: 0;
    +}
    

    The design system doesn't describe this behavior. It actually doesn't describe that the first button shouldn't have margin left as well so maybe its the design system that needs an update?

huzooka’s picture

Assigned: Unassigned » huzooka

Wont change anything, but answering #66.

huzooka’s picture

Assigned: huzooka » lauriii
Status: Needs work » Needs review
StatusFileSize
new66.81 KB
new64.17 KB
new65.84 KB

Re #66:

  1. It's better than expected... Is that a real problem?
lauriii’s picture

StatusFileSize
new14.14 KB
new1.46 KB

I added a border to the button in high contrast mode since it makes buttons more usable. I don't think we should block this issue on the high contrast mode not looking pretty. There's plenty of more serious problems in the high contrast mode we should focus on first.

I also removed the margin reset from the last button since it doesn't lead into consistent behavior. We should reconsider how we want to handle the left and right margins in a separate issue and make changes globally.

huzooka’s picture

Status: Needs review » Needs work

Re #69:

  1. With the latest mod regarding to the border you've made buttons 2px higher (normal: 50px, small: 34px), so they don't follow the design now.
  2. Please take the !important flag back to the button border property. That's required to make Firefox hc look nice instead of looking like on screenshot I provided in #68.2
  3. Don't use px unit.

P.s: Please follow patch naming convention.

imalabya’s picture

Issue tags: +Needs reroll

Patch doesn't apply anymore. Adding a Reroll tag.

imalabya’s picture

Issue tags: -Needs reroll
StatusFileSize
new14.16 KB

Added a rerolled patch.

imalabya’s picture

Status: Needs work » Needs review
StatusFileSize
new14.17 KB
new1.11 KB

Added a patch to reduce the border to 0px which makes the height of the buttons 32px for small and 48px for normal.
Replaced the px with rem.

lauriii’s picture

Issue tags: +Needs reroll

The patch doesn't apply

lauriii’s picture

Removed the form action mobile styles since those are not part of the Claro styleguide. Also changed margins to follow the styleguide and made some documentation improvements.

huzooka’s picture

Status: Needs review » Needs work
StatusFileSize
new31.29 KB
new1.52 MB
new215.14 KB
new225.54 KB
new135.15 KB

Re #75:

  1. +++ b/css/src/base/variables.css
    @@ -61,6 +63,7 @@
    +  --base-border-radius: 0.125rem;
    

    This should be 2px according our current standards.

  2. +++ b/css/src/components/button.css
    @@ -0,0 +1,127 @@
    +  padding: var(--space-m) var(--space-l); /* 1 */
    

    Let's modify this to calc(var(--space-m) - 1px) calc(var(--space-l) - 1px) to keep button height follow the design (see #3).

  3. +++ b/css/src/components/button.css
    @@ -0,0 +1,127 @@
    +  border: 0 solid transparent;
    

    Since we want borders for buttons in high contrast mode, we should use 1px here instead of 0, but with an !important flag. Important is necessary to override the 3px (transparent) border in high-contrast Firefox (check the attached screenshots).

  4. +++ b/css/src/components/button.css
    @@ -0,0 +1,127 @@
    +  padding: var(--space-xs) var(--space-m);
    

    Same as #2: calc(var(--space-xs) - 1px) calc(var(--space-m) - 1px).

We're almost there! :)

mandclu’s picture

To me the default button looks like it's disabled. Is the idea that buttons will, in most cases, use either the primary or secondary styling? As a general UX principal, it's best practice to have a single colour for all interactive elements, and use it on all interactive elements. I get why we're straying from that principle for the danger buttons, but why not make the default style more like the secondary styling in the summary?

lauriii’s picture

Status: Needs work » Needs review
StatusFileSize
new16.06 KB
new2.17 KB

@mandclu thank you for your feedback! I forwarded the feedback to the design team ✌️

This should address #76. 🥳

huzooka’s picture

Generating the screenshots...

ckrina’s picture

Re to #77:

First, thank you for your feedback @mandclu!

the default button looks like it's disabled

I could agree with this. Although we worked on that to move from the disabled appearance (it's an old known issue on the design team), it could potentially be perceived as disabled. The main reason it's not darker is to be more accessible for Color blindness (specifically Monochromacy).

As a general UX principal, it's best practice to have a single colour for all interactive elements

Color is not what needs to be used in a UI where almost everything is an actionable element. Things like hierarchy would be totally lost. :-)
But you are right on that actionable/interactive elements need to be recognizable as actionable/interactive. It's just that we have other things like shadows, borders, and other useful styles and patterns usually more accessible than just color to communicate this possible interaction.

So, wrapping this up, I'd suggest to move forward with this issue to not block a key component as buttons and open a follow up for the default grey button to refine the current solution (note that it's not the primary button, since we may have tens of actions in the same page and only one of them the primary).

ckrina’s picture

lauriii’s picture

StatusFileSize
new17.53 KB
new2.45 KB

This makes spacing between form elements more consistent. I also made some changes to the action links to make them look closer to the mockups. I know that the actions links will still change before the final product, but I thought it would be nice to match the current designs until we have the final design for the component.

huzooka’s picture

Assigned: Unassigned » huzooka
Status: Needs review » Needs work
huzooka’s picture

From Slack by Ckrina:

the default margin for buttons should be 2x vertical and 1x horizontal by default. But inside form actions it has to be 1x 1x

huzooka’s picture

Re #82:

I've separated the action-link-related mods into a standalone patch and added to the right issue #3036732: Action link component.

I think we shouldn't touch action links, they have their own issue, they aren't ruined by this issue and I'm sure that we don't want to add something that's worse than a previous commit:

Action links styled by patch added in #82 Action links without touching the component

Patch that addresses that we discussed on Slack (and summarised in #84) attached.

Screenshots attached.

lauriii’s picture

Status: Needs review » Reviewed & tested by the community

Great! This works for me!

lauriii’s picture

Updating issue credits.

  • huzooka committed d34f169 on 8.x-1.x
    Issue #3021087 by lauriii, Kami Amiga, huzooka, kostyashupenko, imalabya...
huzooka’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.