Skip to content
Snippets Groups Projects
Commit 8a28d46a authored by Timur Oberhuber's avatar Timur Oberhuber :speech_balloon:
Browse files

Remove @extend + Fix URL changing with tab clicks

* Resolve's Rubens feedback on MR.
* Changing tabs now changes the URL as well
parent 61141ba9
No related branches found
No related tags found
2 merge requests!234Dev to master,!185Change job offers and extra work into list view
Pipeline #731117 passed with warnings
...@@ -41,7 +41,6 @@ ...@@ -41,7 +41,6 @@
} }
&[data-type="pos"] { &[data-type="pos"] {
@extend .accordion__action;
color: var(--primary-green); color: var(--primary-green);
&:hover, &:focus-visible { &:hover, &:focus-visible {
...@@ -50,7 +49,6 @@ ...@@ -50,7 +49,6 @@
} }
&[data-type="neg"] { &[data-type="neg"] {
@extend .accordion__action;
color: var(--primary-red); color: var(--primary-red);
&:hover, &:focus-visible { &:hover, &:focus-visible {
...@@ -66,13 +64,11 @@ ...@@ -66,13 +64,11 @@
padding: 0.1em 0.5em; padding: 0.1em 0.5em;
&[data-type="pos"] { &[data-type="pos"] {
@extend .badge;
border: 1px solid var(--primary-green); border: 1px solid var(--primary-green);
color: var(--primary-green); color: var(--primary-green);
} }
&[data-type="neg"] { &[data-type="neg"] {
@extend .badge;
border: 1px solid var(--primary-red); border: 1px solid var(--primary-red);
color: var(--primary-red); color: var(--primary-red);
} }
... ...
......
...@@ -34,6 +34,7 @@ ...@@ -34,6 +34,7 @@
document.getElementById("declarations").classList.toggle("hidden"); document.getElementById("declarations").classList.toggle("hidden");
document.getElementById("work-tab").classList.toggle("active"); document.getElementById("work-tab").classList.toggle("active");
document.getElementById("declarations-tab").classList.toggle("active"); document.getElementById("declarations-tab").classList.toggle("active");
window.history.replaceState(null, document.title, "/extra-work/open?tab=" + to)
} }
currentTab = to; currentTab = to;
} }
... ...
......
...@@ -34,6 +34,7 @@ ...@@ -34,6 +34,7 @@
document.getElementById("applications").classList.toggle("hidden"); document.getElementById("applications").classList.toggle("hidden");
document.getElementById("offers-tab").classList.toggle("active"); document.getElementById("offers-tab").classList.toggle("active");
document.getElementById("applications-tab").classList.toggle("active"); document.getElementById("applications-tab").classList.toggle("active");
window.history.replaceState(null, document.title, "/job-offer/open?tab=" + to)
} }
currentTab = to; currentTab = to;
} }
... ...
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment