mirror of
https://github.com/codex-storage/codex-marketplace-ui.git
synced 2025-02-24 05:38:18 +00:00
Add coming soon message for disabled elements
This commit is contained in:
parent
21fe557157
commit
eb450931a9
@ -275,3 +275,23 @@
|
|||||||
/* position: inherit; */
|
/* position: inherit; */
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.menu a {
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
.menu a[data-title]:hover::after {
|
||||||
|
content: attr(data-title);
|
||||||
|
background-color: #2f2f2f;
|
||||||
|
color: #fff;
|
||||||
|
padding: 8px;
|
||||||
|
border-radius: 4px;
|
||||||
|
font-size: 12px;
|
||||||
|
line-height: 14px;
|
||||||
|
display: block;
|
||||||
|
position: absolute;
|
||||||
|
white-space: nowrap;
|
||||||
|
position: absolute;
|
||||||
|
right: 1rem;
|
||||||
|
z-index: 1;
|
||||||
|
}
|
||||||
|
@ -63,7 +63,12 @@ const Layout = () => {
|
|||||||
{
|
{
|
||||||
type: "item",
|
type: "item",
|
||||||
Component: (p: MenuItemComponentProps) => (
|
Component: (p: MenuItemComponentProps) => (
|
||||||
<Link to="/dashboard/nodes" {...p}>
|
<Link
|
||||||
|
to="/dashboard/nodes"
|
||||||
|
{...p}
|
||||||
|
disabled={true}
|
||||||
|
aria-disabled={true}
|
||||||
|
data-title="Coming soon">
|
||||||
<span className="menu-icon">
|
<span className="menu-icon">
|
||||||
<NodesIcon />
|
<NodesIcon />
|
||||||
</span>
|
</span>
|
||||||
@ -74,7 +79,13 @@ const Layout = () => {
|
|||||||
{
|
{
|
||||||
type: "item",
|
type: "item",
|
||||||
Component: (p: MenuItemComponentProps) => (
|
Component: (p: MenuItemComponentProps) => (
|
||||||
<Link to="/dashboard/analytics" {...p}>
|
<Link
|
||||||
|
to="/dashboard/analytics"
|
||||||
|
{...p}
|
||||||
|
disabled={true}
|
||||||
|
aria-disabled={true}
|
||||||
|
title="Coming soon"
|
||||||
|
data-title="Coming soon">
|
||||||
<span className="menu-icon">
|
<span className="menu-icon">
|
||||||
<AnalyticsIcon />
|
<AnalyticsIcon />
|
||||||
</span>
|
</span>
|
||||||
@ -85,7 +96,13 @@ const Layout = () => {
|
|||||||
{
|
{
|
||||||
type: "item",
|
type: "item",
|
||||||
Component: (p: MenuItemComponentProps) => (
|
Component: (p: MenuItemComponentProps) => (
|
||||||
<Link to="/dashboard/device" {...p}>
|
<Link
|
||||||
|
to="/dashboard/device"
|
||||||
|
{...p}
|
||||||
|
disabled={true}
|
||||||
|
aria-disabled={true}
|
||||||
|
title="Coming soon"
|
||||||
|
data-title="Coming soon">
|
||||||
<span className="menu-icon">
|
<span className="menu-icon">
|
||||||
<DeviceIcon />
|
<DeviceIcon />
|
||||||
</span>
|
</span>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user