Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
Seven theme
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
24 Mar 2014 at 12:27 UTC
Updated:
29 Jul 2014 at 23:28 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
lewisnymanI think it was just missed in the patch, we actually have a custom design for the focus outline but we struggled to figure out how to manage the support for box shadow.
Comment #2
oostieThis one would be better then my previous patch.
It uses box-shadow instead of the normal outline.
Comment #3
lewisnymanI noticed there was some whitespace in the patch. Also do we need to change the border color aswell? That makes it tricky with primary buttons etc.
I also found the original focus styling from the prototype:
box-shadow: 0 0 0.5em 0.1em hsla(203, 100%, 60%, 0.7)Comment #4
oostieLewisNyman thanks for your response. I changed the box-shadow with the one you provided.
On your image it looks like the normal gray button the border changes from gray to blue and the primary button changes from dark to light blue.
Comment #5
lewisnymanAh so do we need to add focus styling for button--primary as well? I don't think we changed the border in the prototype. Go with whatever you think looks better but be careful to test the focus styling in combination with the hover and active etc etc.
Comment #6
oostieI created a new patch which is exactly like in the style guide.
The normal buttons have an other slightly lighter color than the primary buttons.
I also tested the other states and the are still working.
Comment #7
lewisnymanThis looks good!
Sorry to be picky but the .button:focus needs to be placed up below the .button:focus, .button:hover selector. The .button--primary:focus can go below the .button--primary:focus, .button--primary:hover selector. This is probably the cleanest CSS file in Seven at least :P
Comment #8
oostieIf you wouldn't be picky the CSS file would become a mess ;-) Here's another one!
Comment #9
lewisnymanComment #10
lewisnymanYay! Thanks.
Comment #11
alexpottCommitted 9de62af and pushed to 8.x. Thanks!