diff --git a/.changeset/fair-feet-know.md b/.changeset/fair-feet-know.md new file mode 100644 index 00000000000..6b304100194 --- /dev/null +++ b/.changeset/fair-feet-know.md @@ -0,0 +1,5 @@ +--- +"@primer/components": patch +--- + +Update color variable used in ProgressBar (`state.success` → `bg.successInverse`) diff --git a/docs/content/BorderBox.md b/docs/content/BorderBox.md index 2a72369a085..ecf2bc16c81 100644 --- a/docs/content/BorderBox.md +++ b/docs/content/BorderBox.md @@ -2,8 +2,7 @@ title: BorderBox --- - -BorderBox is a Box component with a border. When no `borderColor` is present, the component defaults to a gray border. +BorderBox is a Box component with a border. When no `borderColor` is present, the component defaults to a primary border. ## Default example @@ -19,10 +18,10 @@ BorderBox components get `COMMON`, `LAYOUT`, `BORDER`, and `FLEX` system props. ## Component props -| Prop name | Type | Default | Description | -| :- | :- | :-: | :- | -| borderWidth | String | '1px' | Sets the border, use theme values or provide your own. | -| borderStyle | String | 'solid' | Sets the border style, use theme values or provide your own. | -| borderColor | String | 'gray.2' (from theme) | Sets the border color, use theme values or provide your own. | -| borderRadius | String or Number| 2 (from theme)| Sets the border radius, use theme values or provide your own. | -| boxShadow | String | | Sets box shadow, use theme values or provide your own. | +| Prop name | Type | Default | Description | +| :----------- | :--------------- | :---------------------------: | :------------------------------------------------------------ | +| borderWidth | String | '1px' | Sets the border, use theme values or provide your own. | +| borderStyle | String | 'solid' | Sets the border style, use theme values or provide your own. | +| borderColor | String | 'border.primary' (from theme) | Sets the border color, use theme values or provide your own. | +| borderRadius | String or Number | 2 (from theme) | Sets the border radius, use theme values or provide your own. | +| boxShadow | String | | Sets box shadow, use theme values or provide your own. | diff --git a/docs/content/Box.md b/docs/content/Box.md index ec0d92d401b..ea2b5dd8ac0 100644 --- a/docs/content/Box.md +++ b/docs/content/Box.md @@ -2,17 +2,26 @@ title: Box --- - -The Box component serves as a wrapper component for most layout related needs. Use Box to set values such as `display`, `width`, `height`, and more. See the LAYOUT section of our [System Props](/system-props) documentation for the full list of available props. In practice, this component is used frequently as a wrapper around other components to achieve Box Model related styling. +The Box component serves as a wrapper component for most layout related needs. Use Box to set values such as `display`, `width`, `height`, and more. See the LAYOUT section of our [System Props](/system-props) documentation for the full list of available props. In practice, this component is used frequently as a wrapper around other components to achieve Box Model related styling. ## Default example ```jsx live live - Box can be used to create both inline and - block-level elements, - elements with fixed or responsive width and height, - and more! + Box can be used to create both{' '} + + inline + {' '} + and + + block-level elements, + + + elements with fixed or responsive width and height, + + + and more! + ``` @@ -22,6 +31,6 @@ Box components get the `COMMON`, `LAYOUT`, and `FLEX` categories of system props ## Component props -| Prop name | Type | Default | Description | -| :- | :- | :-: | :- | -| as | String | `div` | sets the HTML tag for the component| +| Prop name | Type | Default | Description | +| :-------- | :----- | :-----: | :---------------------------------- | +| as | String | `div` | sets the HTML tag for the component | diff --git a/docs/content/BranchName.md b/docs/content/BranchName.md index f16cf0aef70..1badc1882a2 100644 --- a/docs/content/BranchName.md +++ b/docs/content/BranchName.md @@ -2,8 +2,7 @@ title: BranchName --- - -BranchName is a label-type component rendered as an `` tag by default with monospace font and blue background. +BranchName is a label-type component rendered as an `` tag by default with monospace font. ## Default example @@ -17,7 +16,7 @@ BranchName components get `COMMON` system props. Read our [System Props](/system ## Component props -| Name | Type | Default | Description | -| :- | :- | :-: | :- | -| as | String | `` | sets the HTML tag for the component | -| href | String | | a URL to link the component to | +| Name | Type | Default | Description | +| :--- | :----- | :-----: | :---------------------------------- | +| as | String | `` | sets the HTML tag for the component | +| href | String | | a URL to link the component to | diff --git a/docs/content/CircleOcticon.md b/docs/content/CircleOcticon.md index 15acafd2495..c48583735a9 100644 --- a/docs/content/CircleOcticon.md +++ b/docs/content/CircleOcticon.md @@ -2,13 +2,12 @@ title: CircleOcticon --- - CircleOcticon renders any Octicon with a circle background. CircleOcticons are most commonly used to represent the status of a pull request in the comment timeline. ## Default example ```jsx live - + ``` ## System props @@ -17,7 +16,7 @@ CircleOcticon components get `COMMON` system props. Read our [System Props](/sys ## Component props -| Name | Type | Default | Description | -| :- | :- | :-: | :- | -| icon | Octicon | | Octicon component used in the component | -| size | Number | 32 | used to set the width and height of the component | +| Name | Type | Default | Description | +| :--- | :------ | :-----: | :------------------------------------------------ | +| icon | Octicon | | Octicon component used in the component | +| size | Number | 32 | used to set the width and height of the component | diff --git a/docs/content/Flex.md b/docs/content/Flex.md index 245f917151a..ab342589a41 100644 --- a/docs/content/Flex.md +++ b/docs/content/Flex.md @@ -4,20 +4,20 @@ title: Flex The `Flex` component behaves the same as the `Box` component except that it has `display: flex` set by default. -*Previously, a `Flex.Item` component was used for flex item specific properties; `Box` now contains all those properties and should be used in its place.* +_Previously, a `Flex.Item` component was used for flex item specific properties; `Box` now contains all those properties and should be used in its place._ ## Default example ```jsx live - + Item 1 - + Item 2 - + Item 3 diff --git a/docs/content/Grid.md b/docs/content/Grid.md index ef0ebe0f392..315c2de8b27 100644 --- a/docs/content/Grid.md +++ b/docs/content/Grid.md @@ -8,8 +8,12 @@ Grid is a component that exposes grid system props. See the [CSS Tricks Complete ```jsx live - 1 - 2 + + 1 + + + 2 + ``` diff --git a/docs/content/Label.md b/docs/content/Label.md index c77d3cba59d..40375d4d484 100644 --- a/docs/content/Label.md +++ b/docs/content/Label.md @@ -7,11 +7,11 @@ The Label component is used to add contextual metadata to a design. Visually it ## Default example ```jsx live - small + small medium (default) large xl label - + good first issue 🚂 deploy: train @@ -26,9 +26,9 @@ Label components get `COMMON` system props. Read our [System Props](/system-prop ## Component props -| Name | Type | Default | Description | -| :- | :- | :-: | :- | -| outline | Boolean | | Creates an outline style label | -| variant | String | 'medium' | Can be one of `small`, `medium` (default), `large` or `xl` . -| dropshadow | Boolean | | Adds a dropshadow to the label | -| bg | String | 'gray.5' | Part of the `COMMON` system props, used to change the background of the label. +| Name | Type | Default | Description | +| :--------- | :------ | :--------------------: | :----------------------------------------------------------------------------- | +| outline | Boolean | | Creates an outline style label | +| variant | String | 'medium' | Can be one of `small`, `medium` (default), `large` or `xl` . | +| dropshadow | Boolean | | Adds a dropshadow to the label | +| bg | String | 'label.primary.border' | Part of the `COMMON` system props, used to change the background of the label. | diff --git a/docs/content/LabelGroup.md b/docs/content/LabelGroup.md index abf1788bff1..8f3e62766c9 100644 --- a/docs/content/LabelGroup.md +++ b/docs/content/LabelGroup.md @@ -9,7 +9,7 @@ The LabelGroup component is used to add commonly used margins and wrapping for g ```jsx live Default label - Label with red background + Label with background indicating a closed PR state Default outline label ``` diff --git a/docs/content/Link.md b/docs/content/Link.md index 424c76ee5e0..106fda6d2e8 100644 --- a/docs/content/Link.md +++ b/docs/content/Link.md @@ -2,7 +2,7 @@ title: Link --- -The Link component styles anchor tags with default blue styling and hover text decoration. `Link` is used for destinations, or moving from one page to another. +The Link component styles anchor tags with default hyperlink color cues and hover text decoration. `Link` is used for destinations, or moving from one page to another. In special cases where you'd like a `` styled like a `Link`, use ``. Make sure to provide a click handler with `onClick`. @@ -22,10 +22,10 @@ Link components get `COMMON` and `TYPOGRAPHY` system props. Read our [System Pro ## Component props -| Name | Type | Default | Description | -| :-------- | :------ | :-----: | :------------------------------------------------ | -| href | String | | URL to be used for the Link | -| muted | Boolean | false | Uses light gray for Link color, and blue on hover | -| underline | Boolean | false | Adds underline to the Link | -| as | String | 'a' | Can be 'a', 'button', 'input', or 'summary' | -| hoverColor | String | | Color used when hovering over link | +| Name | Type | Default | Description | +| :--------- | :------ | :-----: | :------------------------------------------------------------------------------ | +| href | String | | URL to be used for the Link | +| muted | Boolean | false | Uses a less prominent shade for Link color, and the default link shade on hover | +| underline | Boolean | false | Adds underline to the Link | +| as | String | 'a' | Can be 'a', 'button', 'input', or 'summary' | +| hoverColor | String | | Color used when hovering over link | diff --git a/docs/content/PointerBox.md b/docs/content/PointerBox.md index f2b0a222fb9..31239c18800 100644 --- a/docs/content/PointerBox.md +++ b/docs/content/PointerBox.md @@ -7,7 +7,7 @@ PointerBox is a [BorderBox](./BorderBox) component with a caret added to it. ## Default example ```jsx live - + PointerBox ``` @@ -18,10 +18,15 @@ function PointerBoxDemo(props) { return ( - Caret Position + + Caret Position + - Content + + {' '} + Content{' '} + ) @@ -29,15 +34,31 @@ function PointerBoxDemo(props) { function CaretSelector(props) { const choices = [ - 'top', 'bottom', 'left', 'right', - 'left-bottom', 'left-top', 'right-bottom', 'right-top', - 'top-left', 'bottom-left', 'top-right', 'bottom-right' - ].map((dir) => ( + 'top', + 'bottom', + 'left', + 'right', + 'left-bottom', + 'left-top', + 'right-bottom', + 'right-top', + 'top-left', + 'bottom-left', + 'top-right', + 'bottom-right' + ].map(dir => ( - props.onChange(dir)} /> {dir} + props.onChange(dir)} + />{' '} + {dir} -)) + )) return ( @@ -55,6 +76,6 @@ PointerBox components get `COMMON`, `LAYOUT`, `BORDER`, and `FLEX` system props. ## Component props -| Name | Type | Default | Description | -| :- | :- | :-: | :- | -| caret | String | bottom | Sets the location of the caret. The format is `[edge]-[position on edge]`. For example, `right-top` will position the caret on the top of the right edge of the box. Use `top`, `right`, `bottom`, or `left` to position a caret in the center of that edge. | +| Name | Type | Default | Description | +| :---- | :----- | :-----: | :----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| caret | String | bottom | Sets the location of the caret. The format is `[edge]-[position on edge]`. For example, `right-top` will position the caret on the top of the right edge of the box. Use `top`, `right`, `bottom`, or `left` to position a caret in the center of that edge. | diff --git a/docs/content/Position.md b/docs/content/Position.md index ef36af4e54e..3ff968176d4 100644 --- a/docs/content/Position.md +++ b/docs/content/Position.md @@ -10,22 +10,38 @@ The Position component is a wrapper component that gives the containing componen Relative + Absolute - - rt - lt - rb - lb - bl - br - tl - tr - + + + rt + + + lt + + + rb + + + lb + + + bl + + + br + + + tl + + + tr + + Sticky - - + + I'm sticky! @@ -33,7 +49,7 @@ The Position component is a wrapper component that gives the containing componen Fixed (see the bottom right of the screen) - + I'm fixed to the bottom right. diff --git a/docs/content/ProgressBar.mdx b/docs/content/ProgressBar.mdx index a45daa56651..d7ec53f061f 100644 --- a/docs/content/ProgressBar.mdx +++ b/docs/content/ProgressBar.mdx @@ -2,22 +2,22 @@ title: ProgressBar --- - -Use `ProgressBar` to visualize task completion. +Use `ProgressBar` to visualize task completion. ## Default example ```jsx live - - ``` + +``` + +If you'd like to use ProgressBar inline, pass the `inline` boolean prop & **be sure to set a width**. - If you'd like to use ProgressBar inline, pass the `inline` boolean prop & **be sure to set a width**. - ```jsx live - <> - 5 of 10 - - > - ``` +```jsx live +<> + 5 of 10 + +> +``` ## System props @@ -25,9 +25,9 @@ ProgressBar components get `COMMON` system props. Read our [System Props](/syste ## Component props -| Name | Type | Default | Description | -| :- | :- | :-: | :- | -| progress | Number | | Used to set the size of the green bar | -| barSize | String | 'default' | Controls the height of the progress bar. Can be 'small', 'large', or 'default'. If omitted, height is set to the default height. | -| inline | Boolean | false | Styles the progress bar inline | -| bg | String | 'green.5' | Set the progress bar color, defaults to bg-green | +| Name | Type | Default | Description | +| :------- | :------ | :-----------------: | :------------------------------------------------------------------------------------------------------------------------------- | +| progress | Number | | Used to set the size of the green bar | +| barSize | String | 'default' | Controls the height of the progress bar. Can be 'small', 'large', or 'default'. If omitted, height is set to the default height. | +| inline | Boolean | false | Styles the progress bar inline | +| bg | String | 'bg.successInverse' | Set the progress bar color, defaults to bg-green | diff --git a/docs/content/SideNav.md b/docs/content/SideNav.md index 388570fd267..7752dbfc6c3 100644 --- a/docs/content/SideNav.md +++ b/docs/content/SideNav.md @@ -35,11 +35,7 @@ Add the `variant='full'` prop to a `SideNav.Link` to spread child elements acros Text Only - + With an avatar @@ -48,18 +44,20 @@ Add the `variant='full'` prop to a `SideNav.Link` to spread child elements acros With a status icon - + With a label - label + label With a counter 16 - A heading + + A heading + and some more content @@ -106,7 +104,7 @@ It can also appear nested, as a sub navigation. Use margin/padding [System Props Profile - + Sub item 1 @@ -141,19 +139,19 @@ If using React Router, you can use the `as` prop to render the element as a `Nav ### SideNav -| Name | Type | Default | Description | -| :- | :- | :-: | :- | -| as | String | 'nav' | Sets the HTML tag for the component. | -| bordered | Boolean | false | Renders the component with a border. | -| variant | String | 'normal' | Set to `lightweight` to render [in a lightweight style](#lightweight-variant). | +| Name | Type | Default | Description | +| :------- | :------ | :------: | :----------------------------------------------------------------------------- | +| as | String | 'nav' | Sets the HTML tag for the component. | +| bordered | Boolean | false | Renders the component with a border. | +| variant | String | 'normal' | Set to `lightweight` to render [in a lightweight style](#lightweight-variant). | ### SideNav.Link -| Name | Type | Default | Description | -| :- | :- | :-: | :- | -| as | String | 'a' | Sets the HTML tag for the component. | -| href | String | | URL to be used for the Link | -| muted | Boolean | false | Uses light gray for Link color, and blue on hover | -| selected | Boolean | false | Sets the link as selected, giving it a different style and setting the `aria-current` attribute. | -| underline | Boolean | false | Adds underline to the Link | -| variant | String | 'normal' | Set to `full` to render [a full variant](#full-variant), suitable for including icons and labels. | +| Name | Type | Default | Description | +| :-------- | :------ | :------: | :------------------------------------------------------------------------------------------------ | +| as | String | 'a' | Sets the HTML tag for the component. | +| href | String | | URL to be used for the Link | +| muted | Boolean | false | Uses a less prominent shade for Link color, and the default link shade on hover | +| selected | Boolean | false | Sets the link as selected, giving it a different style and setting the `aria-current` attribute. | +| underline | Boolean | false | Adds underline to the Link | +| variant | String | 'normal' | Set to `full` to render [a full variant](#full-variant), suitable for including icons and labels. | diff --git a/docs/content/StyledOcticon.md b/docs/content/StyledOcticon.md index b5642ebf004..36285795443 100644 --- a/docs/content/StyledOcticon.md +++ b/docs/content/StyledOcticon.md @@ -8,8 +8,8 @@ StyledOcticon renders an [Octicon](https://octicons.github.com) with common syst ## Default example ```jsx live - - + + ``` ## System props @@ -20,9 +20,9 @@ StyledOcticon components get `COMMON` system props. Read our [System Props](/sys StyledOcticon passes all of its props except the common system props down to the [Octicon component](https://github.com/primer/octicons/tree/master/lib/octicons_react#usage), including: -| Name | Type | Default | Description | -| :- | :- | :-: | :- | -| ariaLabel | String | | Specifies the `aria-label` attribute, which is read verbatim by screen readers | -| icon | Component | | [Octicon component](https://github.com/primer/octicons/tree/master/lib/octicons_react) used in the component | -| size | Number | 16 | Sets the uniform `width` and `height` of the SVG element | -| verticalAlign | String | `text-bottom` | Sets the `vertical-align` CSS property | +| Name | Type | Default | Description | +| :------------ | :-------- | :-----------: | :----------------------------------------------------------------------------------------------------------- | +| ariaLabel | String | | Specifies the `aria-label` attribute, which is read verbatim by screen readers | +| icon | Component | | [Octicon component](https://github.com/primer/octicons/tree/master/lib/octicons_react) used in the component | +| size | Number | 16 | Sets the uniform `width` and `height` of the SVG element | +| verticalAlign | String | `text-bottom` | Sets the `vertical-align` CSS property | diff --git a/docs/content/Text.md b/docs/content/Text.md index b1acc9f0ef4..a3984b2b54a 100644 --- a/docs/content/Text.md +++ b/docs/content/Text.md @@ -1,13 +1,15 @@ --- title: Text --- + The Text component is a wrapper component that will apply typography styles to the text inside. ## Default example + ```jsx live bold -red color -white on black +danger color +inverse colors ``` ## System props @@ -16,6 +18,6 @@ Text components get `TYPOGRAPHY` and `COMMON` system props. Read our [System Pro ## Component props -| Name | Type | Default | Description | -| :- | :- | :-: | :- | -| as | String | `span` | Sets the HTML tag for the component| +| Name | Type | Default | Description | +| :--- | :----- | :-----: | :---------------------------------- | +| as | String | `span` | Sets the HTML tag for the component | diff --git a/docs/content/Timeline.md b/docs/content/Timeline.md index a326b6de490..a0b141148b9 100644 --- a/docs/content/Timeline.md +++ b/docs/content/Timeline.md @@ -13,13 +13,13 @@ The Timeline.Item component is used to display items on a vertical timeline, con - + Monalisa - created one + created one hot potato - + Just now @@ -50,28 +50,22 @@ of the child `StyledOcticon` if necessary. ```jsx live - - + + - Red background used when closed events occur + Background used when closed events occur - - + + - Green background when opened or passed events occur + Background when opened or passed events occur - - + + - Purple background used when pull requests are merged - - - - - - Blue background to indicate new events below + Background used when pull requests are merged ``` @@ -104,17 +98,17 @@ To create a visual break in the timeline, use Timeline.Break. This adds a horizo ```jsx live - - + + - Red background used when closed events occur + Background used when closed events occur - - + + - Green background when opened or passed events occur + Background when opened or passed events occur ``` diff --git a/docs/content/Tooltip.md b/docs/content/Tooltip.md index df64779e229..629f8605af9 100644 --- a/docs/content/Tooltip.md +++ b/docs/content/Tooltip.md @@ -2,9 +2,9 @@ title: Tooltip --- -The Tooltip component adds a tooltip to add context to elements on the page. The Tooltip has a black background by default. +The Tooltip component adds a tooltip to add context to elements on the page. -***⚠️ Usage warning! ⚠️*** +**_⚠️ Usage warning! ⚠️_** Tooltips as a UI pattern should be our last resort for conveying information because it is hidden by default and often with zero or little visual indicator of its existence. @@ -12,8 +12,6 @@ Before adding a tooltip, please consider: Is this information essential and nece **Attention:** we use aria-label for tooltip contents, because it is crucial that they are accessible to screen reader users. However, aria-label replaces the text content of an element in screen readers, so only use Tooltip on elements with no existing text content, or consider using `title` for supplemental information. - - ## Default example ```jsx live @@ -28,10 +26,10 @@ Tooltip components get `COMMON` system props. Read our [System Props](/system-pr ## Component props -| Name | Type | Default | Description | -| :- | :- | :-: | :- | -| align | String | | Can be either `left` or `right`.| -| direction | String | | Can be one of `n`, `ne`, `e`, `se`, `s`, `sw`, `w`, `nw` | Sets where the tooltip renders in relation to the target. | -| noDelay | Boolean | | When set to `true`, tooltip appears without any delay | -| aria-label | String | | Text used in `aria-label` (for accessibility). -| wrap | Boolean | | Use `true` to allow text within tooltip to wrap. +| Name | Type | Default | Description | +| :--------- | :------ | :-----: | :------------------------------------------------------- | --------------------------------------------------------- | +| align | String | | Can be either `left` or `right`. | +| direction | String | | Can be one of `n`, `ne`, `e`, `se`, `s`, `sw`, `w`, `nw` | Sets where the tooltip renders in relation to the target. | +| noDelay | Boolean | | When set to `true`, tooltip appears without any delay | +| aria-label | String | | Text used in `aria-label` (for accessibility). | +| wrap | Boolean | | Use `true` to allow text within tooltip to wrap. | diff --git a/docs/content/overriding-styles.mdx b/docs/content/overriding-styles.mdx index 896c3b541d8..ece0e6b910e 100644 --- a/docs/content/overriding-styles.mdx +++ b/docs/content/overriding-styles.mdx @@ -2,7 +2,7 @@ title: Overriding styles with the sx prop --- -Our goal with Primer React is to hit the sweet spot between providing too little and too much styling flexibility; too little and the design system is too rigid, and too much and it becomes too difficult to maintain a consistent style. Our components already support a standard set of [system props](/system-props), but sometimes a component just isn't *quite* flexible enough to look the way you need it to look. For those cases, we provide the `sx` prop. +Our goal with Primer React is to hit the sweet spot between providing too little and too much styling flexibility; too little and the design system is too rigid, and too much and it becomes too difficult to maintain a consistent style. Our components already support a standard set of [system props](/system-props), but sometimes a component just isn't _quite_ flexible enough to look the way you need it to look. For those cases, we provide the `sx` prop. The `sx` prop allows ad-hoc styling that is still theme aware. Declare the styles you want to apply in camel-cased object notation, and try to use theme values in appropriate CSS properties when possible. If you've passed a custom theme using `ThemeProvider` or a `theme` prop, the `sx` prop will honor the custom theme. For more information on theming in Primer React, check out [the Primer Theme documentation](/primer-theme). @@ -10,9 +10,9 @@ The `sx` prop allows ad-hoc styling that is still theme aware. Declare the style The `sx` prop provides a lot of power, which means it is an easy tool to abuse. To best make use of it, we recommend following these guidelines: -* Use the `sx` prop for small stylistic changes to components. For more substantial changes, consider abstracting your style changes into your own wrapper component. -* Use [system props](/system-props) instead of the `sx` prop whenever possible. -* Avoid nesting and pseudo-selectors in `sx` prop values when possible. +- Use the `sx` prop for small stylistic changes to components. For more substantial changes, consider abstracting your style changes into your own wrapper component. +- Use [system props](/system-props) instead of the `sx` prop whenever possible. +- Avoid nesting and pseudo-selectors in `sx` prop values when possible. ## Basic example @@ -25,7 +25,7 @@ This example demonstrates applying a bottom border to `Heading`, a component tha pb={2} sx={{ borderBottomWidth: 1, - borderBottomColor: 'border.gray', + borderBottomColor: 'border.primary', borderBottomStyle: 'solid' }}> Heading with bottom border @@ -40,9 +40,10 @@ Just like [values passed to system props](https://styled-system.com/responsive-s - Responsive background color + bg: ['bg.primary', 'bg.info', 'bg.success', 'bg.warning', 'bg.danger'] + }} +> + Responsive background color ``` @@ -51,21 +52,23 @@ Just like [values passed to system props](https://styled-system.com/responsive-s The `sx` prop also allows for declaring styles based on media queries, psueudo-classes, and pseudo-elements. This example, though contrived, demonstrates the ability: ```jsx live - *': { - borderWidth: 1, - borderColor: 'border.gray', - borderStyle: 'solid', - borderBottomWidth: 0, - padding: 2, - ':last-child': { - borderBottomWidth: 1 - }, - ':hover': { - bg: 'gray.1' + *': { + borderWidth: 1, + borderColor: 'border.primary', + borderStyle: 'solid', + borderBottomWidth: 0, + padding: 2, + ':last-child': { + borderBottomWidth: 1 + }, + ':hover': { + bg: 'border.tertiary' + } } - } -}}> + }} +> First Second Third diff --git a/src/ProgressBar.tsx b/src/ProgressBar.tsx index 5a105c7c778..fa584b406b0 100644 --- a/src/ProgressBar.tsx +++ b/src/ProgressBar.tsx @@ -45,7 +45,7 @@ function ProgressBar({progress, bg, theme, ...rest}: ProgressBarProps) { } ProgressBar.defaultProps = { - bg: 'state.success', + bg: 'bg.successInverse', barSize: 'default' }
(see the bottom right of the screen)