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

Commit

Permalink
feat: change highlight names to improve usability
Browse files Browse the repository at this point in the history
  • Loading branch information
filipowm committed Jul 3, 2020
1 parent 1b85237 commit ac6eb2e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions src/components/MdxComponents/highlights.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,15 @@ const Highlight = ({ children, color, icon, ...props }) => {
};

export default {
Note: (props) =>
Warning: (props) =>
Highlight({
color: 'note',
color: 'warning',
icon: AlertTriangle,
...props,
}),
Warning: (props) =>
Error: (props) =>
Highlight({
color: 'warning',
color: 'error',
icon: AlertOctagon,
...props,
}),
Expand Down
4 changes: 2 additions & 2 deletions src/theme/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,12 +147,12 @@ const jargon = (colors) => ({
});

const highlights = (colors) => ({
note: {
warning: {
border: colors.orange,
background: colors.orangeLight,
font: colors.fontDark,
},
warning: {
error: {
border: colors.red,
background: colors.redLight,
font: colors.fontDark,
Expand Down

0 comments on commit ac6eb2e

Please sign in to comment.