-
Notifications
You must be signed in to change notification settings - Fork 197
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
feat: halo focus ring #603
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Move the dimensional stuff to index.css
as semantically named variables and calc
it all, create static aliases in DNA for the static pixel values you need in skin.css
, and this will be good.
Also, have you tested at Large scales?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks excellent. Just a question about the :focus
and the extra selector.
Also, re: the conversation today, should we include Slider in this?
components/button/skin.css
Outdated
--spectrum-button-primary-border-size-increase-key-focus: 1px; | ||
--spectrum-actionbutton-quiet-border-size-key-focus: 1px; | ||
--spectrum-button-primary-focus-ring-gap-key-focus: var(--spectrum-alias-focus-ring-gap); | ||
--spectrum-button-primary-focus-ring-size-key-focus: calc(var(--spectrum-alias-focus-ring-gap) + var(--spectrum-alias-focus-ring-size)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
From today's discussion re: Clear Button in toast, the outline should probably be in the same place as the over background button next to it. |
Hi, I found a few build errors in this PR. |
* also, remove unnecessary removal of box-shadow on Action Button
@jianliao hmm, does that same thing happen to the Dial here? http://spectrum-css-archives.s3-website.us-east-2.amazonaws.com/2.17.0/docs/dial.html I can't even get the thing to focus... |
* refactor box to be a :before elemnt * why didn't we do this before? get it? before?
Just pushed the animation changes: https://git.corp.adobe.com/pages/lawdavis/halo-focus-transparent/docs/halo-focus.html |
@jianliao fixed the Dial issue, good catch! Now will just fixup the DNA vars and then we can merge. |
@@ -25,6 +25,9 @@ governing permissions and limitations under the License. | |||
} | |||
|
|||
%spectrum-BaseButton { | |||
/* Contain halo */ | |||
position: relative; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I hope this doesn't break anything for anyone.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@lazd yes, unfortunately, it causes major regression CUI-7431
Description
Added support for the halo focus ring on:
How and where has this been tested?
Steps
gulp dev
Tested in:
To-do list