+ );
+}
diff --git a/docs/src/pages/components/avatars/avatars.md b/docs/src/pages/components/avatars/avatars.md
index adfa454cfd5467..c3577afe020552 100644
--- a/docs/src/pages/components/avatars/avatars.md
+++ b/docs/src/pages/components/avatars/avatars.md
@@ -19,6 +19,12 @@ Avatars containing simple characters can be created by passing your string as `c
{{"demo": "pages/components/avatars/LetterAvatars.js"}}
+## Sizes
+
+You can change the size of the avatar with the `height` and `width` CSS properties.
+
+{{"demo": "pages/components/avatars/SizeAvatars.js"}}
+
## Icon avatars
Icon avatars are created by passing an icon as `children`.
@@ -41,12 +47,12 @@ The component fallbacks if there is an error loading the avatar image, in this o
{{"demo": "pages/components/avatars/FallbackAvatars.js"}}
-## With badge
-
-{{"demo": "pages/components/avatars/BadgeAvatars.js"}}
-
## Grouped
`AvatarGroup` renders its children as a stack.
{{"demo": "pages/components/avatars/GroupAvatars.js"}}
+
+## With badge
+
+{{"demo": "pages/components/avatars/BadgeAvatars.js"}}
diff --git a/docs/src/pages/components/badges/BadgeAlignment.js b/docs/src/pages/components/badges/BadgeAlignment.js
index ee660970f43db4..27574669afb161 100644
--- a/docs/src/pages/components/badges/BadgeAlignment.js
+++ b/docs/src/pages/components/badges/BadgeAlignment.js
@@ -7,11 +7,11 @@ import Radio from '@material-ui/core/Radio';
import RadioGroup from '@material-ui/core/RadioGroup';
import { makeStyles } from '@material-ui/core/styles';
import MailIcon from '@material-ui/icons/Mail';
+import MarkdownElement from 'docs/src/modules/components/MarkdownElement';
const useStyles = makeStyles(theme => ({
root: {
- display: 'flex',
- flexDirection: 'column',
+ width: '100%',
},
formControl: {
margin: theme.spacing(3),
@@ -38,19 +38,30 @@ export default function BadgeAlignment() {
setVertical(event.target.value);
};
+ const code = `
+\`\`\`jsx
+
+\`\`\`
+`;
+
return (
);
}
diff --git a/docs/src/pages/components/badges/badges.md b/docs/src/pages/components/badges/badges.md
index fa68eec06546c7..69a1c6e50712e6 100644
--- a/docs/src/pages/components/badges/badges.md
+++ b/docs/src/pages/components/badges/badges.md
@@ -15,7 +15,7 @@ Examples of badges containing text, using primary and secondary colors. The badg
## Customized badges
-Here are some examples of customizing the component. You can learn more about this in the [overrides documentation page](/customization/components/).
+Here is an example of customizing the component. You can learn more about this in the [overrides documentation page](/customization/components/).
{{"demo": "pages/components/badges/CustomizedBadges.js"}}
@@ -49,4 +49,4 @@ You can use the `overlap` property to place the badge relative to the corner of
You can use the `horizontalAlignment` and `verticalAlignment` properties to move the badge to any corner of the wrapped element.
-{{"demo": "pages/components/badges/BadgeAlignment.js"}}
+{{"demo": "pages/components/badges/BadgeAlignment.js", "hideHeader": true}}
diff --git a/packages/material-ui/src/Badge/Badge.js b/packages/material-ui/src/Badge/Badge.js
index bc0900fe6f6194..cf1fcef48e5a8e 100644
--- a/packages/material-ui/src/Badge/Badge.js
+++ b/packages/material-ui/src/Badge/Badge.js
@@ -5,7 +5,7 @@ import withStyles from '../styles/withStyles';
import capitalize from '../utils/capitalize';
const RADIUS_STANDARD = 10;
-const RADIUS_DOT = 3;
+const RADIUS_DOT = 4;
export const styles = theme => ({
/* Styles applied to the root element. */
@@ -57,6 +57,7 @@ export const styles = theme => ({
},
/* Styles applied to the root element if `variant="dot"`. */
dot: {
+ borderRadius: RADIUS_DOT,
height: RADIUS_DOT * 2,
minWidth: RADIUS_DOT * 2,
padding: 0,
diff --git a/test/regressions/index.js b/test/regressions/index.js
index cb5cdc818bac05..9b5559e544b5d4 100644
--- a/test/regressions/index.js
+++ b/test/regressions/index.js
@@ -82,6 +82,7 @@ const blacklistFilename = [
'docs-components-tree-view/CustomizedTreeView.png',
// Redux isolation
+ 'docs-components-badges/BadgeAlignment.png',
'docs-components-chips/ChipsPlayground.png',
'docs-components-popover/AnchorPlayground.png',
'docs-components-popper/ScrollPlayground.png',