UX: make whole category box clickable (#18780)

This commit is contained in:
Kris 2022-10-27 15:27:53 -04:00 committed by GitHub
parent 952b033165
commit 9c2f0edbec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View File

@ -2,7 +2,7 @@
<div data-notification-level={{c.notificationLevelString}} style={{unless this.noCategoryStyle (html-safe (concat (border-color c.color) (category-color-variable c.color)))}} class="category category-box category-box-{{c.slug}} {{if c.isMuted "muted"}} {{if this.noCategoryStyle "no-category-boxes-style"}}">
<div class="category-box-inner">
<div class="category-box-heading">
<a href={{c.url}}>
<a class="parent-box-link" href={{c.url}}>
{{#unless c.isMuted}}
{{#if c.uploaded_logo.url}}
<CategoryLogo @category={{c}} />

View File

@ -275,6 +275,9 @@
.featured-topics {
margin-bottom: 1em;
// we absolutely position the parent category's link so the whole box is clickable
// to prevent this covering topic links, we need to raise the z-index
z-index: 1;
ul {
color: var(--primary-medium);
list-style: none;