added no-scrollbar utility (#3031)
* added no-scrollbar utility * added responsive variants * undo prettier on global.csspull/3032/head
parent
a9e519f643
commit
0f0513b8b7
|
@ -28,7 +28,7 @@ const NavTabs: FC<NavTabProps> = ({ tabs, linkProps, ...props }) => {
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<nav
|
<nav
|
||||||
className="-mb-px flex space-x-5 overflow-x-scroll rtl:space-x-reverse sm:rtl:space-x-reverse"
|
className="no-scrollbar -mb-px flex space-x-5 overflow-x-scroll rtl:space-x-reverse sm:rtl:space-x-reverse"
|
||||||
aria-label="Tabs"
|
aria-label="Tabs"
|
||||||
{...props}>
|
{...props}>
|
||||||
{tabs.map((tab) => {
|
{tabs.map((tab) => {
|
||||||
|
|
|
@ -9,6 +9,25 @@
|
||||||
--brand-text-color-dark-mode: #292929;
|
--brand-text-color-dark-mode: #292929;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
Adds Utility to hide scrollbar to tailwind
|
||||||
|
https://github.com/tailwindlabs/tailwindcss/discussions/2394
|
||||||
|
https://github.com/tailwindlabs/tailwindcss/pull/5732
|
||||||
|
*/
|
||||||
|
@layer utilities {
|
||||||
|
@variants responsive {
|
||||||
|
/* Chrome, Safari and Opera */
|
||||||
|
.no-scrollbar::-webkit-scrollbar {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.no-scrollbar {
|
||||||
|
-ms-overflow-style: none; /* IE and Edge */
|
||||||
|
scrollbar-width: none; /* Firefox */
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Override the default tailwindcss-forms styling (default is: 'colors.blue.600')
|
* Override the default tailwindcss-forms styling (default is: 'colors.blue.600')
|
||||||
* @see: https://github.com/tailwindlabs/tailwindcss-forms/issues/14#issuecomment-1005376006
|
* @see: https://github.com/tailwindlabs/tailwindcss-forms/issues/14#issuecomment-1005376006
|
||||||
|
|
Loading…
Reference in New Issue