Skip to content

Commit 6ca7449

Browse files
authored
Merge pull request #28 from palmerhq/bugfix/notification
Fix notification count and styling in docs
2 parents fea3476 + 240c7a4 commit 6ca7449

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

docs/src/components/Button/Button.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import React from 'react'
22

33
export const buttonStyles = {
44
color: 'white',
5-
overflow: 'hidden',
65
display: 'inline-block',
76
verticalAlign: 'bottom',
87
position: 'relative',

site/gatsby-node.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,6 @@ exports.onPostBuild = () =>
9393
fs.writeFileSync(
9494
path.resolve(process.cwd(), 'public', 'release-dates.json'),
9595
JSON.stringify(
96-
releaseEdges.slice(0, 9).map(({ node: { publishedAt } }) => publishedAt)
96+
releaseEdges.slice(0, 10).map(({ node: { publishedAt } }) => publishedAt)
9797
)
9898
)

widget/src/widget.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ function createWidget() {
146146
const count = lastViewedIndex === -1 ? dates.length : lastViewedIndex
147147

148148
if (count > 0) {
149-
notification.innerHTML = count === dates.length ? `${count}+` : count
149+
notification.innerHTML = count > 9 ? `9+` : count
150150
toggles.forEach(toggle => {
151151
const notificationCopy = notification.cloneNode(true)
152152
toggleNotifications.set(toggle, notificationCopy)

0 commit comments

Comments
 (0)