Focus visuals for tabpanel
parent
b6620cec8d
commit
7edc4b5fef
|
@ -115,6 +115,12 @@ const theme = ({ dt }) => `
|
|||
outline: 0 none;
|
||||
}
|
||||
|
||||
.p-tabpanel:focus-visible {
|
||||
box-shadow: ${dt('tabs.tabpanel.focus.ring.shadow')};
|
||||
outline: ${dt('tabs.tabpanel.focus.ring.width')} ${dt('tabs.tabpanel.focus.ring.style')} ${dt('tabs.tabpanel.focus.ring.color')};
|
||||
outline-offset: ${dt('tabs.tabpanel.focus.ring.offset')};
|
||||
}
|
||||
|
||||
.p-tablist-active-bar {
|
||||
z-index: 1;
|
||||
display: block;
|
||||
|
|
|
@ -30,7 +30,14 @@ export default {
|
|||
tabpanel: {
|
||||
background: '{content.background}',
|
||||
color: '{content.color}',
|
||||
padding: '0.875rem 1.125rem 1.125rem 1.125rem'
|
||||
padding: '0.875rem 1.125rem 1.125rem 1.125rem',
|
||||
focusRing: {
|
||||
width: '{focus.ring.width}',
|
||||
style: '{focus.ring.style}',
|
||||
color: '{focus.ring.color}',
|
||||
offset: '{focus.ring.offset}',
|
||||
shadow: 'inset {focus.ring.shadow}'
|
||||
}
|
||||
},
|
||||
navButton: {
|
||||
background: '{content.background}',
|
||||
|
|
|
@ -26,7 +26,14 @@ export default {
|
|||
tabpanel: {
|
||||
background: '{content.background}',
|
||||
color: '{content.color}',
|
||||
padding: '0.875rem 1.125rem 1.125rem 1.125rem'
|
||||
padding: '0.875rem 1.125rem 1.125rem 1.125rem',
|
||||
focusRing: {
|
||||
width: '{focus.ring.width}',
|
||||
style: '{focus.ring.style}',
|
||||
color: '{focus.ring.color}',
|
||||
offset: '{focus.ring.offset}',
|
||||
shadow: 'inset {focus.ring.shadow}'
|
||||
}
|
||||
},
|
||||
navButton: {
|
||||
background: '{content.background}',
|
||||
|
|
|
@ -29,7 +29,14 @@ export default {
|
|||
tabpanel: {
|
||||
background: '{content.background}',
|
||||
color: '{content.color}',
|
||||
padding: '0.875rem 1.125rem 1.125rem 1.125rem'
|
||||
padding: '0.875rem 1.125rem 1.125rem 1.125rem',
|
||||
focusRing: {
|
||||
width: '{focus.ring.width}',
|
||||
style: '{focus.ring.style}',
|
||||
color: '{focus.ring.color}',
|
||||
offset: '{focus.ring.offset}',
|
||||
shadow: 'inset {focus.ring.shadow}'
|
||||
}
|
||||
},
|
||||
navButton: {
|
||||
background: '{content.background}',
|
||||
|
|
Loading…
Reference in New Issue