Skip to content

Commit

Permalink
Merge pull request #13 from AlmeroSteyn/add-nowrap
Browse files Browse the repository at this point in the history
Add hotfix for nvaccess/nvda#5448
  • Loading branch information
AlmeroSteyn authored Apr 10, 2019
2 parents 0a7c680 + 80b7314 commit 0e39985
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 5 deletions.
11 changes: 7 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 2.0.5 (Apr 10, 2019)

Add nowrap style to hidden regions to hotfix issue [https://github.com/nvaccess/nvda/issues/5448](https://github.com/nvaccess/nvda/issues/5448)

## 2.0.4 (Mar 18, 2019)

Log a warning if the context is missing ([Jeremy Einfeld](https://github.com/JeremyEinfeld))
Expand All @@ -8,7 +12,7 @@ Move live region container to bottom of the announcer to reduce accidental navig

## 2.0.2 (May 31, 2018)

* Enable easier rebroadcast of messages when required.
* Enable easier rebroadcast of messages when required.

## 2.0.1 (May 31, 2018)

Expand All @@ -18,15 +22,15 @@ Move live region container to bottom of the announcer to reduce accidental navig

* Rewrite of package using the new React Context API.
* Removal of the old context API.
* Introduction of new LiveMessenger component to allow direct access to raw functions.
* Introduction of new LiveMessenger component to allow direct access to raw functions.

## 1.0.6 (May 30, 2018)

* Remove incorrect and redundant ARIA from live regions.

## 1.0.5 (February 5, 2018)

* Add `clearOnUnmount` prop to toggle clearing live region on unmount of `LiveMessage`.
* Add `clearOnUnmount` prop to toggle clearing live region on unmount of `LiveMessage`.

## 1.0.4 (September 11, 2017)

Expand All @@ -49,4 +53,3 @@ Move live region container to bottom of the announcer to reduce accidental navig
## 1.0.0

* Initial creation

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-aria-live",
"version": "2.0.4",
"version": "2.0.5",
"description": "Add aria-live messaging to your React app",
"main": "lib/index.js",
"module": "es/index.js",
Expand Down
1 change: 1 addition & 0 deletions src/modules/MessageBlock.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ const offScreenStyle = {
height: '1px',
margin: '-1px',
overflow: 'hidden',
whiteSpace: 'nowrap',
padding: 0,
width: '1px',
position: 'absolute',
Expand Down
4 changes: 4 additions & 0 deletions src/modules/__tests__/__snapshots__/Announcer.spec.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ exports[`Announcer should render correctly via snapshot 1`] = `
"overflow": "hidden",
"padding": 0,
"position": "absolute",
"whiteSpace": "nowrap",
"width": "1px",
}
}
Expand All @@ -43,6 +44,7 @@ exports[`Announcer should render correctly via snapshot 1`] = `
"overflow": "hidden",
"padding": 0,
"position": "absolute",
"whiteSpace": "nowrap",
"width": "1px",
}
}
Expand All @@ -64,6 +66,7 @@ exports[`Announcer should render correctly via snapshot 1`] = `
"overflow": "hidden",
"padding": 0,
"position": "absolute",
"whiteSpace": "nowrap",
"width": "1px",
}
}
Expand All @@ -85,6 +88,7 @@ exports[`Announcer should render correctly via snapshot 1`] = `
"overflow": "hidden",
"padding": 0,
"position": "absolute",
"whiteSpace": "nowrap",
"width": "1px",
}
}
Expand Down
2 changes: 2 additions & 0 deletions src/modules/__tests__/__snapshots__/MessageBlock.spec.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ exports[`MessageBlock should render correctly via snapshot 1`] = `
"overflow": "hidden",
"padding": 0,
"position": "absolute",
"whiteSpace": "nowrap",
"width": "1px",
}
}
Expand All @@ -34,6 +35,7 @@ exports[`MessageBlock should render correctly via snapshot for an empty message
"overflow": "hidden",
"padding": 0,
"position": "absolute",
"whiteSpace": "nowrap",
"width": "1px",
}
}
Expand Down

0 comments on commit 0e39985

Please sign in to comment.