Skip to content

Commit

Permalink
Updated displayswitch component to have pointer
Browse files Browse the repository at this point in the history
  • Loading branch information
remko48 committed Dec 11, 2023
1 parent 4c71379 commit 51ce1f7
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

- **Version 2.2 (breaking changes from 2.1.x)**

- 2.2.41: Updated displayswitch component to have pointer.
- 2.2.40:
- Updated DownloadCard to only accept fontawesome icons.
- Removed tooltip from PrimaryTopNav component and updated dropdown.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@conduction/components",
"version": "2.2.40",
"version": "2.2.41",
"description": "React (Gatsby) components used within the Conduction Skeleton Application (and its implementations)",
"main": "lib/index.js",
"scripts": {
Expand Down
4 changes: 4 additions & 0 deletions src/components/displaySwitch/DisplaySwitch.module.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
.displaySwitchButtons {
align-items: center;
}

.button[aria-pressed="false"]:hover {
cursor: pointer;
}
1 change: 1 addition & 0 deletions src/components/displaySwitch/DisplaySwitch.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ const DisplaySwitch: React.FC<DisplaySwitchProps> = ({ layoutClassName, buttons
pressed={button.pressed}
appearance={button.pressed ? "secondary-action-button" : "subtle-button"}
onClick={button.handleClick}
className={styles.button}
>
{button.icon && <FontAwesomeIcon icon={[button.icon.prefix, button.icon.name]} />}
<span>{button.label}</span>
Expand Down

0 comments on commit 51ce1f7

Please sign in to comment.