From cbd07e9eace9201818b3a8ad17df0df51e6a3c03 Mon Sep 17 00:00:00 2001 From: Ed Ngai Date: Thu, 22 Feb 2018 10:16:49 -0800 Subject: [PATCH] fix(visual-picker): add focus styling (#3093) --- .../coverable-content/_index.scss | 4 ++++ .../coverable-content/example.jsx | 20 ++++++++++++------- .../visual-picker/vertical/_index.scss | 6 +++++- 3 files changed, 22 insertions(+), 8 deletions(-) diff --git a/ui/components/visual-picker/coverable-content/_index.scss b/ui/components/visual-picker/coverable-content/_index.scss index 2a48d42bfd..de61691fe5 100644 --- a/ui/components/visual-picker/coverable-content/_index.scss +++ b/ui/components/visual-picker/coverable-content/_index.scss @@ -57,6 +57,10 @@ box-shadow: $elevation-shadow-4; } + &:focus ~ label .slds-visual-picker__body > *:first-child { + text-decoration: underline; + } + /** * @summary Non-selected state * @selector .slds-is-not-selected diff --git a/ui/components/visual-picker/coverable-content/example.jsx b/ui/components/visual-picker/coverable-content/example.jsx index 66fee5eef7..f32facf833 100644 --- a/ui/components/visual-picker/coverable-content/example.jsx +++ b/ui/components/visual-picker/coverable-content/example.jsx @@ -17,6 +17,12 @@ import { UtilityIcon } from '../../icons/base/example'; // Partial(s) /// //////////////////////////////////////// +export const Option = props => ( + + {props.label} + +); + export let VisualPicker = props => { const uniqueId = _.uniqueId('visual-picker-'); @@ -139,7 +145,7 @@ export default ( icon sprite="utility" symbol="connected_apps" - label="Connected App" + label={