MCPcopy
hub / github.com/primer/react / getDividerStyle

Function getDividerStyle

packages/react/src/UnderlineNav/styles.ts:44–51  ·  view source on GitHub ↗
(theme?: Theme)

Source from the content-addressed store, hash-verified

42}
43
44export const getDividerStyle = (theme?: Theme) => ({
45 display: 'inline-block',
46 borderLeft: '1px solid',
47 width: '1px',
48 borderLeftColor: `${theme?.colors.border.muted}`,
49 marginRight: 1,
50 height: '24px', // The height of the divider - reference from Figma
51})
52
53export const moreBtnStyles = {
54 //set margin 0 here because safari puts extra margin around the button, rest is to reset style to make it look like a list element

Callers 1

UnderlineNav.tsxFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected