Collab ui tweaks (#913)

* decrease gap between menu icons

* reduce margin of copy button

* add collaboratorsCount to roomDialog toggle button
This commit is contained in:
David Luzar 2020-03-11 22:48:27 +01:00 committed by GitHub
parent b82b0754ac
commit 2db2f3f5e4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 37 additions and 7 deletions

View file

@ -21,7 +21,11 @@ type ToolButtonBaseProps = {
};
type ToolButtonProps =
| (ToolButtonBaseProps & { type: "button"; onClick?(): void })
| (ToolButtonBaseProps & {
type: "button";
children?: React.ReactNode;
onClick?(): void;
})
| (ToolButtonBaseProps & {
type: "radio";
@ -61,6 +65,7 @@ export const ToolButton = React.forwardRef(function(
{props.showAriaLabel && (
<div className="ToolIcon__label">{props["aria-label"]}</div>
)}
{props.children}
</button>
);
}