Skip to content

Commit

Permalink
Adds custom font size to list of font sizes options (elastic#27785) (e…
Browse files Browse the repository at this point in the history
  • Loading branch information
cqliu1 authored Dec 26, 2018
1 parent 37bfbab commit 3046dc5
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 3046dc5

Please sign in to comment.