Skip to content

Commit

Permalink
remove right-arrow key and CORS proxy '*.eionet.europa.eu'
Browse files Browse the repository at this point in the history
  • Loading branch information
nileshgulia1 committed May 18, 2021
1 parent b309a55 commit 68f54ee
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 37 deletions.
31 changes: 0 additions & 31 deletions src/components/theme/Header/PageNavigation.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import { Icon } from '@plone/volto/components';
import backIcon from '@plone/volto/icons/back.svg';
import { flattenToAppURL } from '@plone/volto/helpers';
import config from '@plone/volto/registry';
import rightCircle from '@plone/volto/icons/circle-right.svg';
import MenuPosition from './MenuPosition';
import { getBasePath } from '@eeacms/volto-energy-theme/helpers';
import { BodyClass } from '@plone/volto/helpers';
Expand Down Expand Up @@ -330,21 +329,6 @@ class PageNavigation extends Component {
navItem['@id'] || navItem.url
}`}
>
{flattenToAppURL(
this.props.pathname,
).includes(
flattenToAppURL(
navItem['@id'] || navItem.url,
),
) && (
<span className="menuExpandedIndicator">
<Icon
name={rightCircle}
size="20px"
/>
</span>
)}

<Link
key={navItem['@id'] || navItem.url}
to={
Expand Down Expand Up @@ -389,21 +373,6 @@ class PageNavigation extends Component {
country['@id'] || country.url
}`}
>
{flattenToAppURL(
this.props.pathname,
).includes(
flattenToAppURL(
country['@id'] || country.url,
),
) && (
<span className="menuExpandedIndicator">
<Icon
name={rightCircle}
size="20px"
/>
</span>
)}

<Link
key={country['@id'] || country.url}
to={
Expand Down
1 change: 1 addition & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ export default function applyConfig(config) {
...env_destinations,
'www.eea.europa.eu',
'eionet.europa.eu',
'*.eionet.europa.eu',
'www.eionet.europa.eu',
'land.copernicus.eu',
];
Expand Down
12 changes: 6 additions & 6 deletions theme/themes/energyunion/collections/menu.overrides
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
// transition: all 300ms;
.first-level {
padding-top: 1px;
padding-left: 4rem;
padding-left: 1rem;
text-transform: uppercase;

// transition: all 300ms;
Expand All @@ -97,7 +97,7 @@
height: 100%;
padding-top: 300px;
padding-right: 2rem;
padding-left: 4rem;
padding-left: 1rem;
background: rgba(0, 134, 117, 0.95);

.menu-item {
Expand All @@ -119,7 +119,7 @@
// padding-top: 260px;
padding-top: 175px;
padding-right: 2rem;
padding-left: 4rem;
padding-left: 1rem;
background: #d7d7d7;
color: #4d4d4d;

Expand Down Expand Up @@ -241,7 +241,7 @@
.first-level {
max-height: 100vh;
padding-top: 300px;
padding-left: 4rem;
padding-left: 1rem;
text-transform: uppercase;

// transition: all 300ms;
Expand All @@ -264,7 +264,7 @@
height: 100%;
padding-top: 300px;
padding-right: 2rem;
padding-left: 4rem;
padding-left: 1rem;
background: rgba(0, 134, 117, 0.95);

.menu-item {
Expand All @@ -290,7 +290,7 @@
// padding-top: 260px;
padding-top: 171px;
padding-right: 2rem;
padding-left: 4rem;
padding-left: 1rem;
background: #d7d7d7;
color: #4d4d4d;

Expand Down

0 comments on commit 68f54ee

Please sign in to comment.