Skip to content

Commit

Permalink
Merge pull request #11 from perimetre/1.1
Browse files Browse the repository at this point in the history
1.1.11
  • Loading branch information
AssisrMatheus authored Feb 26, 2021
2 parents 602a82b + ae79ad7 commit 679d75b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Fixed

## [1.1.11] - 2021-02-26

### Fixed

- Fixed an issue where the button classes weren't being applied if using icon variant

## [1.1.10] - 2021-02-26

### Changes
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": "@perimetre/ui",
"description": "A component library made by @perimetre",
"version": "1.1.10",
"version": "1.1.11",
"repository": {
"type": "git",
"url": "git+https://github.com/perimetre/ui.git"
Expand Down
5 changes: 2 additions & 3 deletions src/components/Button/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,15 @@ export type ButtonProps = React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTM
export const Button = forwardRef<HTMLButtonElement, ButtonProps>(
({ size = 'medium', variant = 'default', isChip, className, children, ...props }, ref) => {
const isIcon = variant === 'icon';

return (
<button
type="button"
{...props}
ref={ref}
className={classnames(
isIcon ? 'pui-btn-icon' : `pui-btn-${size} pui-btn-${variant}`,
{
'pui-btn-icon': isIcon,
[`pui-btn-${size}`]: !isIcon,
[`pui-btn-${variant}`]: !isIcon,
'pui-chip-btn': isChip
},
className
Expand Down

0 comments on commit 679d75b

Please sign in to comment.