Skip to content
This repository has been archived by the owner on Feb 1, 2024. It is now read-only.

Commit

Permalink
Merge pull request #2560 from teamleadercrm/deprecate-tiny-label
Browse files Browse the repository at this point in the history
[Removed] Tiny label size
  • Loading branch information
JorenSaeyTL authored Feb 13, 2023
2 parents 3ad94a6 + c9b3dc2 commit 7fb195c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@

### Dependency updates

## [20.0.0] - 2023-02-13

### Removed

- `Label`: Remove option for 'tiny' label size ([@JorenSaeyTL](https://github.com/JorenSaeyTL)) in ([#2560](https://github.com/teamleadercrm/ui/pull/2560))

## [19.1.1] - 2023-02-03

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@teamleader/ui",
"description": "Teamleader UI library",
"version": "19.1.1",
"version": "20.0.0",
"author": "Teamleader <[email protected]>",
"bugs": {
"url": "https://github.com/teamleadercrm/ui/issues"
Expand Down
3 changes: 1 addition & 2 deletions src/components/label/Label.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export interface LabelProps extends Omit<BoxProps, 'children'> {
children: ReactNode;
inverse?: boolean;
required?: boolean;
size?: Exclude<typeof SIZES[number], 'fullscreen' | 'smallest' | 'hero'>;
size?: Exclude<typeof SIZES[number], 'tiny' | 'fullscreen' | 'smallest' | 'hero'>;
tooltip?: ReactNode;
tooltipProps?: Record<string, any>;
}
Expand All @@ -35,7 +35,6 @@ const Label: GenericComponent<LabelProps> = ({
};

const Element = {
tiny: TextSmall,
small: TextBodyCompact,
medium: TextBodyCompact,
large: TextDisplay,
Expand Down

0 comments on commit 7fb195c

Please sign in to comment.