Skip to content
This repository was archived by the owner on Sep 20, 2023. It is now read-only.

Commit 70f502e

Browse files
authored
Merge pull request #7 from rpearce/update-example
update example
2 parents ed5b01a + 2dd271c commit 70f502e

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

docs/app.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,7 @@ function (_Component) {
4343
_createClass(App, [{
4444
key: "render",
4545
value: function render() {
46-
return _react.default.createElement("div", {
47-
className: "container"
48-
}, _react.default.createElement("section", null, _react.default.createElement("h2", null, "Button with children"), _react.default.createElement(_.default, {
46+
return _react.default.createElement("div", null, _react.default.createElement("section", null, _react.default.createElement("h2", null, "Button with children"), _react.default.createElement(_.default, {
4947
className: "btn--words",
5048
onClick: function onClick() {
5149
return window.alert('pressed first one');

docs/index.html

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,11 @@
5656
</style>
5757
</head>
5858
<body>
59-
<h1>react-button-a11y example</h1>
60-
<p>Use the TAB key (or equivalent) to select the buttons and use enter/return, spacebar or click on them to trigger the callback.</p>
61-
<div data-app></div>
59+
<main class="container">
60+
<h1>react-button-a11y example</h1>
61+
<p>Use the TAB key (or equivalent) to select the buttons and use enter/return, spacebar or click on them to trigger the callback.</p>
62+
<div data-app></div>
63+
</main>
6264
<script src="app.js" async></script>
6365
</body>
6466
</html>

example/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import ButtonA11y from '../'
55
class App extends Component {
66
render() {
77
return (
8-
<div className="container">
8+
<div>
99
<section>
1010
<h2>Button with children</h2>
1111
<ButtonA11y

0 commit comments

Comments
 (0)