mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
Adds custom font size to list of font sizes options (#27785)
This commit is contained in:
parent
580cfccad8
commit
1fd4de0b3b
1 changed files with 5 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue