Update _ResizeHandle.pcss
(#10772)
* Nesting: `mx_ResizeHandle` * Nesting: `> div` * Run prettier * Use a custom property * Remove a redundant declaration: `cursor: row-resize` The resizer is either vertical or horizontal, and since `cursor: row-resize` is applied by default, it does not need to be repeated here. * Conform the class names to the naming policy * Revert "Use a custom property" This reverts commit 6116939eec7d9e4220b89a638623e5876e143adf.
This commit is contained in:
parent
0d2af83dbe
commit
3ca957b541
8 changed files with 26 additions and 27 deletions
|
@ -26,9 +26,9 @@ interface IResizeHandleProps {
|
|||
const ResizeHandle: React.FC<IResizeHandleProps> = ({ vertical, id, passRef }) => {
|
||||
const classNames = ["mx_ResizeHandle"];
|
||||
if (vertical) {
|
||||
classNames.push("mx_ResizeHandle_vertical");
|
||||
classNames.push("mx_ResizeHandle--vertical");
|
||||
} else {
|
||||
classNames.push("mx_ResizeHandle_horizontal");
|
||||
classNames.push("mx_ResizeHandle--horizontal");
|
||||
}
|
||||
return (
|
||||
<div ref={passRef} className={classNames.join(" ")} data-id={id}>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue