@conduction/components 2.2.40 → 2.2.41

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -4,6 +4,7 @@
4
4
 
5
5
  - **Version 2.2 (breaking changes from 2.1.x)**
6
6
 
7
+ - 2.2.41: Updated displayswitch component to have pointer.
7
8
  - 2.2.40:
8
9
  - Updated DownloadCard to only accept fontawesome icons.
9
10
  - Removed tooltip from PrimaryTopNav component and updated dropdown.
@@ -7,7 +7,7 @@ const DisplaySwitch = ({ layoutClassName, buttons }) => {
7
7
  return (_jsx(ButtonGroup, { className: clsx(styles.displaySwitchButtons, [layoutClassName] && layoutClassName), children: buttons.map((button, idx) => {
8
8
  // TODO: Once the Rotterdam design system supports the "pressed" state,
9
9
  // remove the `appereance` switch, and use the same appearance for each button.
10
- return (_jsxs(Button, { pressed: button.pressed, appearance: button.pressed ? "secondary-action-button" : "subtle-button", onClick: button.handleClick, children: [button.icon && _jsx(FontAwesomeIcon, { icon: [button.icon.prefix, button.icon.name] }), _jsx("span", { children: button.label })] }, idx));
10
+ return (_jsxs(Button, { pressed: button.pressed, appearance: button.pressed ? "secondary-action-button" : "subtle-button", onClick: button.handleClick, className: styles.button, children: [button.icon && _jsx(FontAwesomeIcon, { icon: [button.icon.prefix, button.icon.name] }), _jsx("span", { children: button.label })] }, idx));
11
11
  }) }));
12
12
  };
13
13
  export default DisplaySwitch;
@@ -1,3 +1,7 @@
1
1
  .displaySwitchButtons {
2
2
  align-items: center;
3
3
  }
4
+
5
+ .button[aria-pressed="false"]:hover {
6
+ cursor: pointer;
7
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@conduction/components",
3
- "version": "2.2.40",
3
+ "version": "2.2.41",
4
4
  "description": "React (Gatsby) components used within the Conduction Skeleton Application (and its implementations)",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {
@@ -1,3 +1,7 @@
1
1
  .displaySwitchButtons {
2
2
  align-items: center;
3
3
  }
4
+
5
+ .button[aria-pressed="false"]:hover {
6
+ cursor: pointer;
7
+ }
@@ -35,6 +35,7 @@ const DisplaySwitch: React.FC<DisplaySwitchProps> = ({ layoutClassName, buttons
35
35
  pressed={button.pressed}
36
36
  appearance={button.pressed ? "secondary-action-button" : "subtle-button"}
37
37
  onClick={button.handleClick}
38
+ className={styles.button}
38
39
  >
39
40
  {button.icon && <FontAwesomeIcon icon={[button.icon.prefix, button.icon.name]} />}
40
41
  <span>{button.label}</span>