Skip to content

Commit

Permalink
Merge pull request #1813 from system-ui/label-jsdoc
Browse files Browse the repository at this point in the history
fix(css): add JSDoc comment to sx.label
  • Loading branch information
hasparus committed Jun 11, 2021
2 parents 6bf6cc5 + ce4129b commit 3374dff
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/color/test/index.tsx
Expand Up @@ -6,8 +6,6 @@ import { ThemeProvider } from '@theme-ui/theme-provider'
import { render } from '@theme-ui/test-utils'
import { matchers } from '@emotion/jest'

expect.extend(matchers)

import {
darken,
lighten,
Expand All @@ -27,6 +25,8 @@ import {
grayscale,
} from '../src'

expect.extend(matchers)

const theme = {
colors: {
primary: '#0cf',
Expand Down
8 changes: 7 additions & 1 deletion packages/css/src/types.ts
Expand Up @@ -491,7 +491,13 @@ export interface ThemeDerivedStyles {
(theme: Theme): ThemeUICSSObject
}

export type Label = {
export interface Label {
/**
* String appended to generated class name.
* @see https://emotion.sh/docs/labels
*
* You can style HTML <label> elements with `"& label": {}`.
*/
label?: string
}

Expand Down

1 comment on commit 3374dff

@vercel
Copy link

@vercel vercel bot commented on 3374dff Jun 11, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.