Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(css): add JSDoc comment to sx.label #1813

Merged
merged 1 commit into from Jun 11, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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