mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
Show labels instead of icons for PNG, SVG (#606)
This commit is contained in:
parent
a9790c74f5
commit
2dce2ce712
4 changed files with 7 additions and 23 deletions
|
@ -5,9 +5,10 @@ import React from "react";
|
|||
type ToolIconSize = "s" | "m";
|
||||
|
||||
type ToolButtonBaseProps = {
|
||||
icon: React.ReactNode;
|
||||
icon?: React.ReactNode;
|
||||
"aria-label": string;
|
||||
"aria-keyshortcuts"?: string;
|
||||
label?: string;
|
||||
title?: string;
|
||||
name?: string;
|
||||
id?: string;
|
||||
|
@ -44,7 +45,7 @@ export const ToolButton = React.forwardRef(function(
|
|||
ref={innerRef}
|
||||
>
|
||||
<div className="ToolIcon__icon" aria-hidden="true">
|
||||
{props.icon}
|
||||
{props.icon || props.label}
|
||||
</div>
|
||||
</button>
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue