Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F32614636
D10979.1767454872.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D10979.1767454872.diff
View Options
diff --git a/web/navigation-sidebar/navigation-sidebar-tab-indicator.css b/web/navigation-sidebar/navigation-sidebar-tab-indicator.css
new file mode 100644
--- /dev/null
+++ b/web/navigation-sidebar/navigation-sidebar-tab-indicator.css
@@ -0,0 +1,12 @@
+.container {
+ width: 4px;
+ height: 32px;
+ border-radius: 0px 4px 4px 0px;
+ position: absolute;
+ left: 0;
+ margin-top: -4px;
+}
+
+.activeContainer {
+ background-color: var(--tab-indicator-primary-active);
+}
diff --git a/web/navigation-sidebar/navigation-sidebar-tab-indicator.react.js b/web/navigation-sidebar/navigation-sidebar-tab-indicator.react.js
new file mode 100644
--- /dev/null
+++ b/web/navigation-sidebar/navigation-sidebar-tab-indicator.react.js
@@ -0,0 +1,22 @@
+// @flow
+
+import classNames from 'classnames';
+import * as React from 'react';
+
+import css from './navigation-sidebar-tab-indicator.css';
+
+type Props = {
+ +isActive: boolean,
+};
+
+function NavigationSidebarTabIndicator(props: Props): React.Node {
+ const { isActive } = props;
+
+ const containerClassName = classNames(css.container, {
+ [css.activeContainer]: isActive,
+ });
+
+ return <div className={containerClassName} />;
+}
+
+export default NavigationSidebarTabIndicator;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Jan 3, 3:41 PM (3 h, 33 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5889578
Default Alt Text
D10979.1767454872.diff (1 KB)
Attached To
Mode
D10979: [web] introduce NavigationSidebarTabIndicator
Attached
Detach File
Event Timeline
Log In to Comment