@transferwise/components 0.0.0-experimental-d55f21e → 0.0.0-experimental-c8481f5

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@transferwise/components",
3
- "version": "0.0.0-experimental-d55f21e",
3
+ "version": "0.0.0-experimental-c8481f5",
4
4
  "description": "Neptune React components",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -41,6 +41,7 @@ class TableLink extends PureComponent {
41
41
  } np-text-body-default-bold`}
42
42
  disabled={disabled}
43
43
  aria-label={this.calculateAriaLabel(longTitle, title, active, type, formatMessage)}
44
+ aria-pressed={active}
44
45
  onClick={this.onClick}
45
46
  >
46
47
  {title || item}
@@ -94,6 +94,12 @@ describe('TableLink', () => {
94
94
  expect(button().prop('aria-label')).toBe('12/12/1212, selected day');
95
95
  });
96
96
 
97
+ it('adds aria pressed to selected day', () => {
98
+ expect(button().hasClass('active')).toBe(false);
99
+ component.setProps({ active: true });
100
+ expect(button().prop('aria-pressed')).toBe(true);
101
+ });
102
+
97
103
  it('adds aria label to selected month', () => {
98
104
  component.setProps({ type: 'month' });
99
105
  expect(button().hasClass('active')).toBe(false);