Tokens for Carousel
parent
7ba23e8e00
commit
547d0a31ec
|
@ -37,8 +37,8 @@ const theme = ({ dt }) => `
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
padding: 1rem;
|
padding: ${dt('carousel.indicator.list.padding')};
|
||||||
gap: 0.5rem;
|
gap: ${dt('carousel.indicator.list.gap')};
|
||||||
margin: 0;
|
margin: 0;
|
||||||
list-style: none;
|
list-style: none;
|
||||||
}
|
}
|
||||||
|
@ -48,21 +48,22 @@ const theme = ({ dt }) => `
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
background: ${dt('carousel.indicator.background')};
|
background: ${dt('carousel.indicator.background')};
|
||||||
width: 2rem;
|
width: ${dt('carousel.indicator.width')};
|
||||||
height: 0.5rem;
|
height: ${dt('carousel.indicator.height')};
|
||||||
border: 0 none;
|
border: 0 none;
|
||||||
transition: background-color ${dt('transition.duration')}, color ${dt('transition.duration')}, outline-color ${dt('transition.duration')};
|
transition: background ${dt('transition.duration')}, color ${dt('transition.duration')}, outline-color ${dt('transition.duration')}, box-shadow ${dt('transition.duration')};
|
||||||
outline-color: transparent;
|
outline-color: transparent;
|
||||||
border-radius: ${dt('border.radius.md')};
|
border-radius: ${dt('carousel.indicator.border.radius')};
|
||||||
padding: 0;
|
padding: 0;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
border: none;
|
|
||||||
user-select: none;
|
user-select: none;
|
||||||
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
.p-carousel-indicator-button:focus-visible {
|
.p-carousel-indicator-button:focus-visible {
|
||||||
outline: ${dt('focus.ring.width')} ${dt('focus.ring.style')} ${dt('focus.ring.color')};
|
box-shadow: ${dt('carousel.indicator.focus.ring.shadow')};
|
||||||
outline-offset: ${dt('focus.ring.offset')};
|
outline: ${dt('carousel.indicator.focus.ring.width')} ${dt('carousel.indicator.focus.ring.style')} ${dt('carousel.indicator.focus.ring.color')};
|
||||||
|
outline-offset: ${dt('carousel.indicator.focus.ring.offset')};
|
||||||
}
|
}
|
||||||
|
|
||||||
.p-carousel-indicator-button:hover {
|
.p-carousel-indicator-button:hover {
|
||||||
|
|
|
@ -1,4 +1,22 @@
|
||||||
export default {
|
export default {
|
||||||
|
root: {
|
||||||
|
indicatorList: {
|
||||||
|
padding: '1rem',
|
||||||
|
gap: '0.5rem'
|
||||||
|
},
|
||||||
|
indicator: {
|
||||||
|
width: '2rem',
|
||||||
|
height: '0.5rem',
|
||||||
|
borderRadius: '{content.border.radius}',
|
||||||
|
focusRing: {
|
||||||
|
width: '{focus.ring.width}',
|
||||||
|
style: '{focus.ring.style}',
|
||||||
|
color: '{focus.ring.color}',
|
||||||
|
offset: '{focus.ring.offset}',
|
||||||
|
shadow: '{focus.ring.shadow}'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
colorScheme: {
|
colorScheme: {
|
||||||
light: {
|
light: {
|
||||||
indicator: {
|
indicator: {
|
||||||
|
|
|
@ -1,4 +1,22 @@
|
||||||
export default {
|
export default {
|
||||||
|
root: {
|
||||||
|
indicatorList: {
|
||||||
|
padding: '1rem',
|
||||||
|
gap: '0.5rem'
|
||||||
|
},
|
||||||
|
indicator: {
|
||||||
|
width: '1rem',
|
||||||
|
height: '1rem',
|
||||||
|
borderRadius: '50',
|
||||||
|
focusRing: {
|
||||||
|
width: '{focus.ring.width}',
|
||||||
|
style: '{focus.ring.style}',
|
||||||
|
color: '{focus.ring.color}',
|
||||||
|
offset: '{focus.ring.offset}',
|
||||||
|
shadow: '{focus.ring.shadow}'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
colorScheme: {
|
colorScheme: {
|
||||||
light: {
|
light: {
|
||||||
indicator: {
|
indicator: {
|
||||||
|
|
Loading…
Reference in New Issue