@royaloperahouse/harmonic 0.13.1-a → 0.13.1-b

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/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ## [0.13.1]
2
+ - Buttons, ControlledDropdown, SocialLinks, AnchorBar, Pagination, PolicyLinks, Footer: add tabIndex=0
3
+
1
4
  ## [0.13.0]
2
5
  - Restyled: Quote, Image Gallery, Accordions, BodyContent, AnchorTabBar, PromoWithTags, Section, ContactCard
3
6
 
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
2
  import { ITabProps } from '../../../types/types';
3
- declare const Tab: ({ title, titleLink, onClick, onFocus, onReset, selected, iconName, iconDirection, withIcon, withTextInMobile, trimText, className, role, ariaLabel, tabLinkId, color, }: ITabProps) => React.JSX.Element;
3
+ declare const Tab: ({ title, titleLink, onClick, onFocus, onReset, selected, iconName, iconDirection, withIcon, withTextInMobile, trimText, className, role, ariaLabel, tabLinkId, color, isOpen, }: ITabProps) => React.JSX.Element;
4
4
  export default Tab;
@@ -2,6 +2,6 @@ interface FocusableTabProps {
2
2
  $hide?: boolean;
3
3
  }
4
4
  export declare const SkiptoMainContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
5
- export declare const FocusableTab: import("styled-components").StyledComponent<({ title, titleLink, onClick, onFocus, onReset, selected, iconName, iconDirection, withIcon, withTextInMobile, trimText, className, role, ariaLabel, tabLinkId, color, }: import("../../../types/types").ITabProps) => import("react").JSX.Element, any, FocusableTabProps, never>;
5
+ export declare const FocusableTab: import("styled-components").StyledComponent<({ title, titleLink, onClick, onFocus, onReset, selected, iconName, iconDirection, withIcon, withTextInMobile, trimText, className, role, ariaLabel, tabLinkId, color, isOpen, }: import("../../../types/types").ITabProps) => import("react").JSX.Element, any, FocusableTabProps, never>;
6
6
  export declare const HiddenBlock: import("styled-components").StyledComponent<"div", any, {}, never>;
7
7
  export {};
@@ -3709,7 +3709,8 @@ var Tab = function Tab(_ref) {
3709
3709
  role = _ref.role,
3710
3710
  ariaLabel = _ref.ariaLabel,
3711
3711
  tabLinkId = _ref.tabLinkId,
3712
- color = _ref.color;
3712
+ color = _ref.color,
3713
+ isOpen = _ref.isOpen;
3713
3714
  var clickHandler = function clickHandler() {
3714
3715
  if (onClick) {
3715
3716
  onClick(titleLink);
@@ -3728,6 +3729,7 @@ var Tab = function Tab(_ref) {
3728
3729
  return /*#__PURE__*/React__default.createElement(TitleContainer, {
3729
3730
  role: role,
3730
3731
  "aria-label": ariaLabel,
3732
+ "aria-expanded": isOpen,
3731
3733
  withTextInMobile: withTextInMobile,
3732
3734
  withIcon: withIcon,
3733
3735
  selected: selected,