mirror of
https://github.com/discourse/discourse.git
synced 2025-02-20 22:49:39 +08:00
UX: make whole category box clickable (#18780)
This commit is contained in:
parent
952b033165
commit
9c2f0edbec
@ -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}} />
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user