@royaloperahouse/harmonic 0.13.1-a → 0.13.1-c

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;
@@ -152,7 +152,6 @@
152
152
  color: var(--color-primary);
153
153
  }
154
154
 
155
-
156
155
  .typography-module_display--black__8hmsx,
157
156
  .typography-module_header--black__M3I14,
158
157
  .typography-module_subtitle--black__IQRSo,
@@ -301,6 +300,7 @@
301
300
  letter-spacing: 0.3px;
302
301
  }
303
302
  }
303
+
304
304
  @font-face {
305
305
  font-family: 'GreyLLTT';
306
306
  src: url('https://static.roh.org.uk/fonts/harmonic/GreyLLTT-Regular.woff2') format('woff2');
@@ -327,8 +327,7 @@
327
327
 
328
328
  @font-face {
329
329
  font-family: 'VictorSerif';
330
- src: url('https://static.roh.org.uk/fonts/harmonic/VictorSerif-Medium.woff2')
331
- format('woff2');
330
+ src: url('https://static.roh.org.uk/fonts/harmonic/VictorSerif-Medium.woff2') format('woff2');
332
331
  font-weight: 500;
333
332
  font-style: normal;
334
333
  font-display: swap;
@@ -336,8 +335,7 @@
336
335
 
337
336
  @font-face {
338
337
  font-family: 'VictorSerif';
339
- src: url('https://static.roh.org.uk/fonts/harmonic/VictorSerif-MediumItalic.woff2')
340
- format('woff2');
338
+ src: url('https://static.roh.org.uk/fonts/harmonic/VictorSerif-MediumItalic.woff2') format('woff2');
341
339
  font-weight: 500;
342
340
  font-style: italic;
343
341
  font-display: swap;
@@ -1219,9 +1217,10 @@
1219
1217
  --information-panel-button-hover-color: var(--color-rbo-red-hovered);
1220
1218
  --information-panel-button-pressed-color: var(--color-rbo-red-pressed);
1221
1219
 
1222
- --heading-promo-bg-color: var(--color-base-white);
1220
+ --heading-promo-bg-color: var(--color-base-white);
1223
1221
  --page-header-bg-color: var(--color-primary-black);
1224
- };
1222
+ }
1223
+
1225
1224
  .schools-theme-module_schoolsTheme__CWHba {
1226
1225
  /* Schools theme overrides */
1227
1226
  --base-color-primary: #c8102e;
@@ -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,