|
| 1 | +.bcds-react-aria-MenuItem { |
| 2 | + display: flex; |
| 3 | + gap: var(--layout-margin-xsmall); |
| 4 | + padding: var(--layout-padding-small); |
| 5 | + cursor: pointer; |
| 6 | + color: var(--typography-color-secondary); |
| 7 | +} |
| 8 | +.bcds-react-aria-MenuItem--Icon { |
| 9 | + display: flex; |
| 10 | + align-self: flex-start; |
| 11 | + padding-top: var(--layout-padding-xsmall); |
| 12 | +} |
| 13 | +.bcds-react-aria-MenuItem--Content { |
| 14 | + display: flex; |
| 15 | + flex-direction: column; |
| 16 | + gap: var(--layout-padding-hair); |
| 17 | +} |
| 18 | + |
| 19 | +/* Sizing */ |
| 20 | +.bcds-react-aria-MenuItem.small { |
| 21 | + font: var(--typography-regular-small-body); |
| 22 | +} |
| 23 | +.bcds-react-aria-MenuItem.small |
| 24 | + > .bcds-react-aria-MenuItem--Content |
| 25 | + > *[slot="description"] { |
| 26 | + font: var(--typography-regular-label); |
| 27 | +} |
| 28 | +.bcds-react-aria-MenuItem.medium { |
| 29 | + font: var(--typography-regular-body); |
| 30 | +} |
| 31 | +.bcds-react-aria-MenuItem.medium |
| 32 | + > .bcds-react-aria-MenuItem--Content |
| 33 | + > *[slot="description"] { |
| 34 | + font: var(--typography-regular-small-body); |
| 35 | +} |
| 36 | + |
| 37 | +/* Link styling */ |
| 38 | +a.bcds-react-aria-MenuItem { |
| 39 | + text-decoration: none; |
| 40 | +} |
| 41 | +a.bcds-react-aria-MenuItem |
| 42 | + > .bcds-react-aria-MenuItem--Content |
| 43 | + > *[slot="label"] { |
| 44 | + color: var(--typography-color-link); |
| 45 | + text-decoration: underline var(--typography-color-link); |
| 46 | + text-underline-offset: var(--layout-margin-hair); |
| 47 | +} |
| 48 | +a.bcds-react-aria-MenuItem |
| 49 | + > .bcds-react-aria-MenuItem--Content |
| 50 | + > *[slot="description"] { |
| 51 | + color: var(--typography-color-secondary); |
| 52 | + text-decoration: none; |
| 53 | +} |
| 54 | +a.bcds-react-aria-MenuItem[data-disabled] |
| 55 | + > .bcds-react-aria-MenuItem--Content |
| 56 | + > *[slot="label"] { |
| 57 | + color: var(--typography-color-disabled); |
| 58 | + text-decoration: none; |
| 59 | +} |
| 60 | +a.bcds-react-aria-MenuItem[data-disabled] |
| 61 | + > .bcds-react-aria-MenuItem--Content |
| 62 | + > *[slot="description"] { |
| 63 | + color: var(--typography-color-disabled); |
| 64 | +} |
| 65 | + |
| 66 | +/* Icon displayed when an item has a submenu */ |
| 67 | +.bcds-react-aria-MenuItem > svg { |
| 68 | + width: var(--icons-size-xsmall); |
| 69 | + height: var(--icons-size-xsmall); |
| 70 | + padding: var(--layout-padding-hair); |
| 71 | + align-self: center; |
| 72 | +} |
| 73 | + |
| 74 | +/* States */ |
| 75 | +.bcds-react-aria-MenuItem[data-focused], |
| 76 | +.bcds-react-aria-MenuItem[data-hovered], |
| 77 | +.bcds-react-aria-MenuItem[data-hovered][data-focused] { |
| 78 | + border-radius: var(--layout-border-radius-small); |
| 79 | + background-color: var(--surface-color-menus-hover); |
| 80 | + outline: none; |
| 81 | +} |
| 82 | +.bcds-react-aria-MenuItem[data-focus-visible] { |
| 83 | + outline: solid var(--layout-border-width-medium) |
| 84 | + var(--surface-color-border-active); |
| 85 | + outline-offset: var(--layout-margin-none); |
| 86 | + border-radius: var(--layout-border-radius-small); |
| 87 | +} |
| 88 | +.bcds-react-aria-MenuItem[data-disabled] { |
| 89 | + color: var(--typography-color-disabled); |
| 90 | + cursor: not-allowed; |
| 91 | +} |
0 commit comments