Skip to content

Commit

Permalink
Adds custom font size to list of font sizes options (elastic#27785)
Browse files Browse the repository at this point in the history
  • Loading branch information
cqliu1 committed Dec 26, 2018
1 parent f8af9b3 commit d2e597d
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,11 @@ export const TextStylePicker = ({
['underline']: Boolean(underline),
};

if (!isNaN(size) && fontSizes.indexOf(Number(size)) === -1) {
fontSizes.push(Number(size));
fontSizes.sort((a, b) => a - b);
}

const doChange = (propName, value) => {
onChange({
family,
Expand Down

0 comments on commit d2e597d

Please sign in to comment.