{info || (icon && )}
@@ -95,8 +93,7 @@ export default React.memo(styled(Badge)`
background: steelblue;
}
- &.counterColor,
- &.counterInvertColor {
+ &.counterColor {
margin: 0 0.5rem;
vertical-align: middle;
}
@@ -126,4 +123,8 @@ export default React.memo(styled(Badge)`
background: transparent;
box-shadow: none;
}
+
+ &.whiteColor {
+ background: rgba(255, 255, 255, 0.3);
+ }
`);
diff --git a/packages/react-components/src/FilterOverlay.tsx b/packages/react-components/src/FilterOverlay.tsx
index 78ef26ad02..0398422b46 100644
--- a/packages/react-components/src/FilterOverlay.tsx
+++ b/packages/react-components/src/FilterOverlay.tsx
@@ -27,11 +27,15 @@ export default React.memo(styled(FilterOverlay)`
}
right: calc(50% - var(--width-half) + 1.5rem);
+ && .ui--Input {
+ margin: 0.29rem 0;
+ }
+
${media.DESKTOP`
display: flex;
justify-content: flex-end;
position: absolute;
- top: 0.25rem;
+ top: 0rem;
> div {
max-width: 35rem !important;
@@ -44,8 +48,7 @@ export default React.memo(styled(FilterOverlay)`
.ui.selection.dropdown {
white-space: nowrap;
}
-
- `}
+ `};
@media (max-width: var(--width-full)) {
right: 1.5rem;
diff --git a/packages/react-components/src/HelpOverlay.tsx b/packages/react-components/src/HelpOverlay.tsx
index 9587ad2967..f231855099 100644
--- a/packages/react-components/src/HelpOverlay.tsx
+++ b/packages/react-components/src/HelpOverlay.tsx
@@ -47,13 +47,14 @@ export default React.memo(styled(HelpOverlay)`
color: var(--color-text);
cursor: pointer;
font-size: 2rem;
- padding: 0.65rem 1.5rem 0 0;
+ padding: 0.35rem 1.5rem 0 0;
}
> .help-button {
position: absolute;
right: 0rem;
top: 0rem;
+ z-index: 10;
}
.help-slideout {
diff --git a/packages/react-components/src/Tabs/CurrentSection.tsx b/packages/react-components/src/Tabs/CurrentSection.tsx
new file mode 100644
index 0000000000..9bbd5dc997
--- /dev/null
+++ b/packages/react-components/src/Tabs/CurrentSection.tsx
@@ -0,0 +1,45 @@
+// Copyright 2017-2020 @polkadot/react-components authors & contributors
+// SPDX-License-Identifier: Apache-2.0
+
+import { IconName } from '@fortawesome/fontawesome-svg-core';
+import React from 'react';
+import styled from 'styled-components';
+
+import Icon from '../Icon';
+
+interface Props {
+ className?: string;
+ icon: IconName;
+ text: string;
+}
+
+function CurrentSection ({ className = '', icon, text }: Props): React.ReactElement
{
+ return (
+
+
+ {text}
+
+ );
+}
+
+export default React.memo(styled(CurrentSection)`
+ margin: 0 2.5rem 0 1.5rem;
+ font-weight: 400;
+ font-size: 1rem;
+ line-height: 1.57rem;
+ min-width: max-content;
+ height: 100%;
+ display: flex;
+ align-items: center;
+ color: var(--color-text);
+
+ .ui--Icon {
+ margin-right: 0.85rem;
+ max-width: 1rem;
+ max-height: 1rem;
+ }
+
+ @media only screen and (max-width: 900px) {
+ margin: 0 1.5rem;
+ }
+`);
diff --git a/packages/react-components/src/Tabs/Tab.tsx b/packages/react-components/src/Tabs/Tab.tsx
index aa14fdea65..953a2490e7 100644
--- a/packages/react-components/src/Tabs/Tab.tsx
+++ b/packages/react-components/src/Tabs/Tab.tsx
@@ -33,7 +33,10 @@ function Tab ({ basePath, className = '', count, hasParams, index, isExact, isRo
strict={tabIsExact}
to={to}
>
- {text}{!!count && (
+
+ {text}
+
+ {!!count && (
+
+
+ );
+}
+
+export default React.memo(styled(TabsSectionDelimiter)`
+ height: 100%;
+ width: auto;
+`);
diff --git a/packages/react-components/src/Tabs/index.tsx b/packages/react-components/src/Tabs/index.tsx
index df7aea57be..5864d3c606 100644
--- a/packages/react-components/src/Tabs/index.tsx
+++ b/packages/react-components/src/Tabs/index.tsx
@@ -1,13 +1,17 @@
// Copyright 2017-2021 @polkadot/react-components authors & contributors
// SPDX-License-Identifier: Apache-2.0
-import type { TabItem } from './types';
+import type { SectionType, TabItem } from './types';
import React, { useEffect } from 'react';
import { useLocation } from 'react-router-dom';
import styled from 'styled-components';
+import CurrentSection from './CurrentSection';
import Tab from './Tab';
+import TabsSectionDelimiter from './TabsSectionDelimiter';
+
+export const SectionContext = React.createContext