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

Commit 91c23af

Browse files
committed
Changelog & API v2.0.0
1 parent f2df576 commit 91c23af

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

API.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
| --- | --- | --- | --- | --- |
55
| `aria-label` | String | yes if `children` absent | none | Pass an `aria-label` if you don't pass children with descriptive text |
66
| `children` | Node | yes if `aria-label` absent | none | Pass `children` with descriptive text if you don't pass an `aria-label` |
7-
| `element` | String | no | `'div'` | The default element is a `div`, but you can pass a `span`, e.g., if you like |
7+
| `element` | String | no | `'span'` | The default element is a `div`, but you can pass a `span`, e.g., if you like |
88
| `onClick` | Function | yes | `Function.prototype` | When the button is "pressed" (via Enter or Spacebar or click), this callback will be triggered with the event |
99
| `strictMode` | Bool | no | `true` | An error will be thrown if enabled and you fail to pass both an `aria-label` and `children` |
1010

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
55
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
66

7+
## [2.0.0] - 2018-12-29
8+
9+
### Changed
10+
* changed default `element` from `div` to `span`. Unfortunately, this qualifies
11+
as a breaking change (hence the major version bump).
12+
713
## [1.0.1] - 2018-12-19
814

915
### Fixed

0 commit comments

Comments
 (0)