patch styles of marker element of selectable
This commit is contained in:
parent
b80e4ea6f5
commit
41bd3463e7
2 changed files with 6 additions and 1 deletions
|
@ -2,4 +2,9 @@
|
||||||
&[data-selected="true"] {
|
&[data-selected="true"] {
|
||||||
background-color: color(from var(--info) xyz x y z / .2);
|
background-color: color(from var(--info) xyz x y z / .2);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.root {
|
||||||
|
display: contents !important;
|
||||||
|
all: inherit;
|
||||||
}
|
}
|
|
@ -177,7 +177,7 @@ const Root: ParentComponent = (props) => {
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
return <div ref={setRoot} tabIndex={0} onKeyDown={onKeyboardEvent} onKeyUp={onKeyboardEvent} style={{ 'display': 'contents' }}>{c()}</div>;
|
return <div ref={setRoot} tabIndex={0} onKeyDown={onKeyboardEvent} onKeyUp={onKeyboardEvent} class={css.root}>{c()}</div>;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const selectable = (element: HTMLElement, options: Accessor<{ value: object, key?: string }>) => {
|
export const selectable = (element: HTMLElement, options: Accessor<{ value: object, key?: string }>) => {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue