mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
fix: changing font size when text is not selected or edited (#4751)
Co-authored-by: dwelle <luzar.david@gmail.com>
This commit is contained in:
parent
e4ffc9812e
commit
d27b3bbebe
3 changed files with 34 additions and 4 deletions
|
@ -7,7 +7,7 @@ export const ButtonIconSelect = <T extends Object>({
|
|||
onChange,
|
||||
group,
|
||||
}: {
|
||||
options: { value: T; text: string; icon: JSX.Element }[];
|
||||
options: { value: T; text: string; icon: JSX.Element; testId?: string }[];
|
||||
value: T | null;
|
||||
onChange: (value: T) => void;
|
||||
group: string;
|
||||
|
@ -24,6 +24,7 @@ export const ButtonIconSelect = <T extends Object>({
|
|||
name={group}
|
||||
onChange={() => onChange(option.value)}
|
||||
checked={value === option.value}
|
||||
data-testid={option.testId}
|
||||
/>
|
||||
{option.icon}
|
||||
</label>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue