Skip to content

Commit f7c0a30

Browse files
committed
Support data-color-scheme
1 parent 1888002 commit f7c0a30

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
export default {
22
name: 'github-button',
3-
props: ['href', 'ariaLabel', 'title', 'dataIcon', 'dataSize', 'dataShowCount', 'dataText'],
3+
props: ['href', 'ariaLabel', 'title', 'dataIcon', 'dataColorScheme', 'dataSize', 'dataShowCount', 'dataText'],
44
render: function (h) {
55
return h('span', [
66
h('a', {
@@ -9,6 +9,7 @@ export default {
99
'aria-label': this.ariaLabel,
1010
'title': this.title,
1111
'data-icon': this.dataIcon,
12+
'data-color-scheme': this.dataColorScheme,
1213
'data-size': this.dataSize,
1314
'data-show-count': this.dataShowCount,
1415
'data-text': this.dataText

package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,6 @@
2323
},
2424
"homepage": "https://buttons.github.io/",
2525
"dependencies": {
26-
"github-buttons": "^2.2.9"
26+
"github-buttons": "^2.3.0"
2727
}
2828
}

0 commit comments

Comments
 (0)