Skip to content
Snippets Groups Projects
Commit 111f5e56 authored by Aspectis's avatar Aspectis Committed by Dorian Merz
Browse files

refs #19359 [fid_bbi] fix icons in links

* Make all icons in links clickable
* Fix position in Firefox
* Move link-with-icon SCSS to separate file
parent 9c023b32
No related merge requests found
...@@ -29,26 +29,3 @@ ...@@ -29,26 +29,3 @@
} }
} }
} }
.link-with-icon {
margin-left: g(1.25);
position: relative;
// Make icon and gap clickable
&::before {
content: '';
display: block;
height: g();
left: 0;
margin-left: g(-1.25);
position: absolute;
top: 0;
width: g(1.25);
}
> .icon {
margin-left: g(-1.25);
margin-right: g(.25);
position: absolute; // Prevent icons from increasing link height
}
}
.link-with-icon {
margin-left: g(1.25);
> .icon {
margin-left: g(-1.25);
padding-right: g(.25);
pointer-events: auto;
position: absolute; // Prevent icons from increasing link height
width: g(1 + .25); // Account for padding
}
}
...@@ -37,6 +37,7 @@ ...@@ -37,6 +37,7 @@
@import 'blocks/header'; @import 'blocks/header';
@import 'blocks/icon'; @import 'blocks/icon';
@import 'blocks/item-list'; @import 'blocks/item-list';
@import 'blocks/link-with-icon';
@import 'blocks/main'; @import 'blocks/main';
@import 'blocks/modal'; @import 'blocks/modal';
@import 'blocks/nav'; @import 'blocks/nav';
......
...@@ -103,7 +103,8 @@ a.active { ...@@ -103,7 +103,8 @@ a.active {
// data-rvkNotation // data-rvkNotation
.link-with-icon[aria-expanded=true] { .link-with-icon[aria-expanded=true] {
> .icon { > .icon {
transform: rotate(180deg) transform: rotate(180deg);
padding: 0 0 0 g(.25);
} }
} }
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment