Skip to content

Commit

Permalink
fix: for base card hover styling, for rich text parser content prop type
Browse files Browse the repository at this point in the history
  • Loading branch information
adarleyjrr committed Dec 15, 2022
1 parent 8d7a315 commit cf06dac
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Fixed

- Fixes type of `HTMLParsedContent` component `content` prop to accept `null` values as they can be treated the same as `undefined`
- Removes pointer cursor css rule from `BaseCard` component in hover state, as the cursor is automatically changed when the component is wrapped by a link

## [9.2.2] 2022-12-13

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion src/components/BaseCard/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export const BaseCard: React.FC<PropsWithChildren<BaseCardProps>> = ({
<div
className={classnames(
'pui-baseCard transition-all',
{ 'hover:border-pui-primary hover:shadow-lg hover:cursor-pointer': hoverState },
{ 'hover:border-pui-primary hover:shadow-lg': hoverState },
className
)}
>
Expand Down
2 changes: 1 addition & 1 deletion src/components/HTMLParsedContent/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export type HTMLParsedContentProps = React.DetailedHTMLProps<React.HTMLAttribute
/**
* The content that should be parsed
*/
content?: string;
content?: string | null;
/**
* The options that are passed down to the parser
*/
Expand Down

0 comments on commit cf06dac

Please sign in to comment.