now-design-atoms
Version:
Atomic UI components for now-design.
72 lines (64 loc) • 1.63 kB
CSS
/* AccordionTrigger Atom Styles - Figma Accurate, Token-Driven */
.accordion-trigger {
display: flex;
align-items: center;
justify-content: space-between;
width: 100%;
padding: var(--gap-spacing-400) var(--gap-spacing-600);
border: none;
border-radius: var(--border-radius-m);
cursor: pointer;
outline: none;
background: transparent;
background-color: transparent;
/* height: 30px; */
}
/* Responsive breakpoints - removed since we're using fixed width approach */
.accordion-trigger-left-section {
display: flex;
align-items: center;
flex: 1;
}
.accordion-trigger-icon-container {
display: flex;
align-items: center;
justify-content: center;
width: 24px;
flex-shrink: 0;
margin-right: calc(var(--gapSpacing-200) * 1px);
/* height: 20px; */
}
.accordion-trigger-label {
flex: 1;
text-align: left;
transition: color 0.2s ease;
display: flex;
align-items: center;
/* height: 20px; */
}
.accordion-trigger-chevron {
display: flex;
align-items: center;
justify-content: center;
width: 24px;
flex-shrink: 0;
/* height: 20px; */
}
/* Ensure smooth transitions for all color changes */
.accordion-trigger * {
transition: color 0.2s ease;
}
/* Override typography classes to prevent unnecessary spacing */
.accordion-trigger .regular-h4,
.accordion-trigger .bold-h4 {
line-height: 1 ;
}
/* Override responsive typography to prevent text disappearing */
@media (max-width: 900px) {
.accordion-trigger .regular-h4,
.accordion-trigger .bold-h4 {
font-size: 12px ;
line-height: 1 ;
letter-spacing: 0px ;
}
}