Initial support for mobile devices (#787)

* Initial support for mobile devices

No editing yet, but UI looks nice and you can open the canvas menu

* Add support for editing shape color, etc

* Allow the mobile menus to cover the shape selector

* Hopefully fix test error

* Fix touch on canvas

* Fix safe area handling & remove unused Island
This commit is contained in:
Jed Fox 2020-02-20 18:44:38 -05:00 committed by GitHub
parent 9439908b92
commit 7a7a73b78d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 358 additions and 125 deletions

View file

@ -14,6 +14,7 @@ type ToolButtonBaseProps = {
id?: string;
size?: ToolIconSize;
keyBindingLabel?: string;
showAriaLabel?: boolean;
};
type ToolButtonProps =
@ -48,6 +49,9 @@ export const ToolButton = React.forwardRef(function(
<div className="ToolIcon__icon" aria-hidden="true">
{props.icon || props.label}
</div>
{props.showAriaLabel && (
<div className="ToolIcon__label">{props["aria-label"]}</div>
)}
</button>
);
}