MCPcopy Create free account
hub / github.com/decaporg/decap-cms / StyledMenuItem

Function StyledMenuItem

packages/decap-cms-ui-default/src/Dropdown.js:54–78  ·  view source on GitHub ↗
({ isActive, isCheckedItem = false, ...props })

Source from the content-addressed store, hash-verified

52`;
53
54function StyledMenuItem({ isActive, isCheckedItem = false, ...props }) {
55 return (
56 <MenuItem
57 css={css`
58 ${components.dropdownItem};
59 &:focus,
60 &:active,
61 &:not(:focus),
62 &:not(:active) {
63 background-color: ${isActive ? colors.activeBackground : 'inherit'};
64 color: ${isActive ? colors.active : '#313d3e'};
65 ${isCheckedItem ? 'display: flex; justify-content: start' : ''};
66 }
67 &:hover {
68 color: ${colors.active};
69 background-color: ${colors.activeBackground};
70 }
71 &.active {
72 text-decoration: underline;
73 }
74 `}
75 {...props}
76 />
77 );
78}
79
80const MenuItemIconContainer = styled.div`
81 flex: 1 0 32px;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected