feat: Dropdown component

feat: Add editor icons

feat: Implement default editor selection
This commit is contained in:
Aman Harwara
2021-10-01 00:29:32 +05:30
parent 6d47821b8f
commit a98409a95f
5 changed files with 204 additions and 15 deletions

View File

@@ -9,14 +9,13 @@
}
[data-reach-dialog-overlay]::before {
background-color: var(--sn-stylekit-contrast-background-color);
content: "";
content: '';
position: fixed;
top: 0px;
right: 0px;
bottom: 0px;
left: 0px;
opacity: 0.75;
}
[data-reach-dialog-content] {

View File

@@ -53,6 +53,29 @@
}
}
.sn-dropdown-popover {
z-index: 3001;
}
.sn-dropdown-button {
@extend .rounded;
@extend .px-3\.5;
@extend .py-1\.75;
@extend .fit-content;
@extend .bg-default;
@extend .text-input;
@extend .color-text;
@extend .border-neutral;
@extend .border-solid;
@extend .border-gray-300;
@extend .border-1;
@extend .min-w-42;
}
.sn-dropdown-arrow {
@extend .flex;
}
/** Lesser specificity will give priority to reach's styles */
[data-reach-custom-checkbox-container].sn-switch {
@extend .duration-150;
@@ -114,6 +137,16 @@
&.sn-dropdown-item--no-icon {
@extend .py-2;
}
&[data-current-nav] {
@extend .bg-contrast;
@extend .hover\:color-text;
}
&[data-current-selected] {
background-color: var(--sn-stylekit-info-backdrop-color);
@extend .color-info;
}
}
.sn-tag {
@@ -278,4 +311,4 @@
.select-none {
user-select: none;
}
}