Skip to content

Commit

Permalink
focus on the demos only
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari committed Jan 3, 2020
1 parent 356296b commit 7a8de22
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion docs/src/pages/components/badges/badges.md
Expand Up @@ -7,7 +7,7 @@ components: Badge

<p class="description">Badge generates a small badge to the top-right of its child(ren).</p>

## Simple badges
## Basic badges

Examples of badges containing text, using primary and secondary colors. The badge is applied to its children.

Expand Down
4 changes: 0 additions & 4 deletions packages/material-ui/src/Badge/Badge.js
Expand Up @@ -186,10 +186,6 @@ const Badge = React.forwardRef(function Badge(props, ref) {
displayValue = badgeContent > max ? `${max}+` : badgeContent;
}

if (invisible && badgeContent === 0 && variant !== 'dot') {
displayValue = '1';
}

return (
<ComponentProp className={clsx(classes.root, className)} ref={ref} {...other}>
{children}
Expand Down

0 comments on commit 7a8de22

Please sign in to comment.