Skip to content

Commit

Permalink
changed buildCss class name in _collapsible.tsx to match the class na…
Browse files Browse the repository at this point in the history
…me in the ruby file and added on hover state to icon
  • Loading branch information
Israel-Molestina committed Oct 14, 2022
1 parent daa28eb commit 93a1a48
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@import "./tokens/colors";

[class^=pb_collapsible_kit] {
.toggle-content {
display: none;
Expand All @@ -12,4 +14,7 @@
display: block;
height: auto;
}
.icon_wrapper:hover {
color: $primary
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ const Collapsible = ({
const ariaProps = buildAriaProps(aria)
const dataProps = buildDataProps(data)
const classes = classnames(
buildCss('pb_collapsible'),
buildCss('pb_collapsible_kit'),
className,
globalProps(props, { padding })
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,11 @@ const Icon = ({ collapsed }: IconProps) => {

return (
<div
className="icon_wrapper"
key={direction}
style={{ verticalAlign: 'middle' }}
>
<i className={`far fa-chevron-${direction} fa-fw`} />
<i className={`far fa-chevron-${direction} fa-fw icon_wrapper`} />
</div>
)
}
Expand Down

0 comments on commit 93a1a48

Please # to comment.