Skip to content

Commit

Permalink
bug(tile): z-index issue with headline link (#1471)
Browse files Browse the repository at this point in the history
* fix(tile): fixed z-index on tile headline

* fix(tile):set highest z-index on headline link

* fix(tile): fixed linting issue

* docs(tile): added lightdom CSS
  • Loading branch information
nikkimk authored Feb 2, 2024
1 parent d87dfb9 commit 01f100c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/late-shrimps-shake.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@rhds/elements": patch
---

`<rh-tile>`: fixed issue with click target area of tile
1 change: 1 addition & 0 deletions docs/elements/elements.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
- /assets/packages/@rhds/elements/elements/rh-subnav/rh-subnav-lightdom.css
- /assets/packages/@rhds/elements/elements/rh-pagination/rh-pagination-lightdom.css
- /assets/packages/@rhds/elements/elements/rh-table/rh-table-lightdom.css
- /assets/packages/@rhds/elements/elements/rh-tile/rh-tile-lightdom.css
eleventyComputed:
title: "{{ doc.pageTitle }} | {{ doc.slug | deslugify }}"
importElements:
Expand Down
5 changes: 5 additions & 0 deletions elements/rh-tile/rh-tile-lightdom.css
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ rh-tile a:is([slot="image"], [slot="headline"]):after {
display: var(--rh-tile-link-after-display);
}

rh-tile [slot="headline"] a:after,
rh-tile a[slot="headline"]:after {
z-index: 3;
}

rh-tile a[slot="image"] > :is(img, svg),
rh-tile [slot="image"]:is(img, svg) {
width: 100%;
Expand Down

0 comments on commit 01f100c

Please sign in to comment.