1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Fix close button styling

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
Alex Andreev 2022-01-19 21:53:07 +03:00
parent 529ed20e04
commit b80a62e29f
2 changed files with 20 additions and 18 deletions

View File

@ -20,25 +20,27 @@
*/ */
.SettingsCloseButton { .SettingsCloseButton {
width: 35px; .closeIcon {
height: 35px; width: 35px;
display: grid; height: 35px;
place-items: center; display: grid;
cursor: pointer; place-items: center;
border: 2px solid var(--textColorDimmed); cursor: pointer;
border-radius: 50%; border: 2px solid var(--textColorDimmed);
border-radius: 50%;
&:hover { &:hover {
background-color: #72767d25; background-color: #72767d25;
} }
&:active { &:active {
transform: translateY(1px); transform: translateY(1px);
} }
.Icon { .Icon {
color: var(--textColorAccent); color: var(--textColorAccent);
opacity: 0.6; opacity: 0.6;
}
} }
.escLabel { .escLabel {

View File

@ -29,8 +29,8 @@ interface Props extends HTMLAttributes<HTMLDivElement> {
export function CloseButton(props: Props) { export function CloseButton(props: Props) {
return ( return (
<div {...props}> <div className="SettingsCloseButton" {...props}>
<div className="SettingsCloseButton" role="button" aria-label="Close"> <div className="closeIcon" role="button" aria-label="Close">
<Icon material="close" /> <Icon material="close" />
</div> </div>
<div className="escLabel" aria-hidden="true"> <div className="escLabel" aria-hidden="true">