Conversation
|
@msayoung Can you test this again please? It looks to me that the template only renders if there is a URL (without a URL, it's basically just a text field). I've added:
Here's a screenshot of the edit page (you can see the two extra items) followed by a screenshot of the rendered page (only the items with URLs are showing). So, I think this is working correctly in terms of "icon + text should be clickable". |
|
@markconroy - I think we are looking at different things. The issue is that with the button style, there is a hover effect on the non-interactive element. The hover effect is on the .link-wrapper , which is much larger than the , making it look like the whole thing is clickable. Does that make sense? |
|
Thanks @msayoung I see what you mean now. I've added some CSS so the whole component is clickable. |
ctorgalson
left a comment
There was a problem hiding this comment.
No objections, just one small suggestion. I can see that this should work as intended.
I do wonder about the need for .link-content > a::after though--it would be simple enough to shift the styles from .link-wrapper into .link-content > a so that the link itself occupied 100% of .link-wrapper.
Is it just a cautious approach to lessen the risk of stepping on the toes of child-theme implementations?
| .link-wrapper { | ||
| position: relative; | ||
| display: flex; | ||
| align-items: center; |
There was a problem hiding this comment.
If the only content of .link-wrapper is .link-content, I think line 3 is superfluous, and line 4 belongs after line 8.
I think I'd like to leave this as is "just in case" someone wants the link to be 100% of the .link-content (which in our default set up is the same as 100% of .link-wrapper) but might also want some padding/different colour, etc on .link-wrapper. |
|
@msayoung I think i have your issues resolved, but it still says "Changes requested" by you. Can you hit the approve button if you don't have any more changes requested please. |



Closes #787
What does this change?
Moves the icon in the link paragraph into the
atag so both the text and the icon are clickable.