Add default outline for a11y
parent
80b1f0210c
commit
053cdfbb18
|
@ -21,9 +21,9 @@ const theme = ({ dt }) => `
|
||||||
}
|
}
|
||||||
|
|
||||||
.p-rating-option.p-focus-visible {
|
.p-rating-option.p-focus-visible {
|
||||||
box-shadow: ${dt('focus.ring.shadow')};
|
box-shadow: ${dt('rating.focus.ring.shadow')};
|
||||||
outline: ${dt('focus.ring.width')} ${dt('focus.ring.style')} ${dt('focus.ring.color')};
|
outline: ${dt('rating.focus.ring.width')} ${dt('rating.focus.ring.style')} ${dt('rating.focus.ring.color')};
|
||||||
outline-offset: ${dt('focus.ring.offset')};
|
outline-offset: ${dt('rating.focus.ring.offset')};
|
||||||
}
|
}
|
||||||
|
|
||||||
.p-rating-icon {
|
.p-rating-icon {
|
||||||
|
|
|
@ -34,9 +34,9 @@ export default {
|
||||||
semantic: {
|
semantic: {
|
||||||
transitionDuration: '0.2s',
|
transitionDuration: '0.2s',
|
||||||
focusRing: {
|
focusRing: {
|
||||||
width: '0',
|
width: '2px',
|
||||||
style: 'none',
|
style: 'solid',
|
||||||
color: 'transparent',
|
color: '{primary.color}',
|
||||||
offset: '0',
|
offset: '0',
|
||||||
shadow: 'none'
|
shadow: 'none'
|
||||||
},
|
},
|
||||||
|
|
|
@ -15,11 +15,11 @@ export default {
|
||||||
invalidBorderColor: '{form.field.invalid.border.color}',
|
invalidBorderColor: '{form.field.invalid.border.color}',
|
||||||
shadow: '{form.field.shadow}',
|
shadow: '{form.field.shadow}',
|
||||||
focusRing: {
|
focusRing: {
|
||||||
width: '{focus.ring.width}',
|
width: '0',
|
||||||
style: '{focus.ring.style}',
|
style: 'none',
|
||||||
color: '{focus.ring.color}',
|
color: 'unset',
|
||||||
offset: '{focus.ring.offset}',
|
offset: '0',
|
||||||
shadow: '{focus.ring.shadow}'
|
shadow: 'none'
|
||||||
},
|
},
|
||||||
transitionDuration: '{form.field.transition.duration}'
|
transitionDuration: '{form.field.transition.duration}'
|
||||||
},
|
},
|
||||||
|
|
|
@ -14,11 +14,11 @@ export default {
|
||||||
invalidBorderColor: '{form.field.invalid.border.color}',
|
invalidBorderColor: '{form.field.invalid.border.color}',
|
||||||
shadow: '{form.field.shadow}',
|
shadow: '{form.field.shadow}',
|
||||||
focusRing: {
|
focusRing: {
|
||||||
width: '{focus.ring.width}',
|
width: '0',
|
||||||
style: '{focus.ring.style}',
|
style: 'none',
|
||||||
color: '{focus.ring.color}',
|
color: 'unset',
|
||||||
offset: '{focus.ring.offset}',
|
offset: '0',
|
||||||
shadow: '{focus.ring.shadow}'
|
shadow: 'none'
|
||||||
},
|
},
|
||||||
transitionDuration: '{form.field.transition.duration}'
|
transitionDuration: '{form.field.transition.duration}'
|
||||||
},
|
},
|
||||||
|
|
|
@ -1,7 +1,14 @@
|
||||||
export default {
|
export default {
|
||||||
root: {
|
root: {
|
||||||
gap: '0.5rem',
|
gap: '0.5rem',
|
||||||
transitionDuration: '{transition.duration}'
|
transitionDuration: '{transition.duration}',
|
||||||
|
focusRing: {
|
||||||
|
width: '0',
|
||||||
|
style: 'none',
|
||||||
|
color: 'unset',
|
||||||
|
offset: '0',
|
||||||
|
shadow: 'none'
|
||||||
|
}
|
||||||
},
|
},
|
||||||
icon: {
|
icon: {
|
||||||
size: '1.125rem',
|
size: '1.125rem',
|
||||||
|
|
|
@ -25,11 +25,11 @@ export default {
|
||||||
shadow: '0px 2px 1px -1px rgba(0, 0, 0, .2), 0px 1px 1px 0px rgba(0, 0, 0, .14), 0px 1px 3px 0px rgba(0, 0, 0, .12)'
|
shadow: '0px 2px 1px -1px rgba(0, 0, 0, .2), 0px 1px 1px 0px rgba(0, 0, 0, .14), 0px 1px 3px 0px rgba(0, 0, 0, .12)'
|
||||||
},
|
},
|
||||||
focusRing: {
|
focusRing: {
|
||||||
width: '{focus.ring.width}',
|
width: '0',
|
||||||
style: '{focus.ring.style}',
|
style: 'none',
|
||||||
color: '{focus.ring.color}',
|
color: 'unset',
|
||||||
offset: '{focus.ring.offset}',
|
offset: '0',
|
||||||
shadow: '{focus.ring.shadow}'
|
shadow: 'none'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
style: ({ dt }) => `
|
style: ({ dt }) => `
|
||||||
|
|
|
@ -6,11 +6,11 @@ export default {
|
||||||
gap: '0',
|
gap: '0',
|
||||||
shadow: 'none',
|
shadow: 'none',
|
||||||
focusRing: {
|
focusRing: {
|
||||||
width: '{focus.ring.width}',
|
width: '0',
|
||||||
style: '{focus.ring.style}',
|
style: 'none',
|
||||||
color: '{focus.ring.color}',
|
color: 'unset',
|
||||||
offset: '{focus.ring.offset}',
|
offset: '0',
|
||||||
shadow: '{focus.ring.shadow}'
|
shadow: 'none'
|
||||||
},
|
},
|
||||||
borderWidth: '1px',
|
borderWidth: '1px',
|
||||||
borderColor: 'transparent',
|
borderColor: 'transparent',
|
||||||
|
|
Loading…
Reference in New Issue