mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 06:15:28 +08:00
UX: Fix styling for focused row (#26698)
This commit is contained in:
parent
b971efed8c
commit
30e3f291f8
|
@ -367,14 +367,14 @@ export default Component.extend({
|
|||
@bind
|
||||
_onTitleFocus() {
|
||||
if (this.element && !this.isDestroying && !this.isDestroyed) {
|
||||
this._mainLinkElement().classList.add("focused");
|
||||
this.element.classList.add("selected");
|
||||
}
|
||||
},
|
||||
|
||||
@bind
|
||||
_onTitleBlur() {
|
||||
if (this.element && !this.isDestroying && !this.isDestroyed) {
|
||||
this._mainLinkElement().classList.remove("focused");
|
||||
this.element.classList.remove("selected");
|
||||
}
|
||||
},
|
||||
|
||||
|
@ -382,10 +382,6 @@ export default Component.extend({
|
|||
return this.site.desktopView && this.focusLastVisitedTopic;
|
||||
},
|
||||
|
||||
_mainLinkElement() {
|
||||
return this.element.querySelector(".main-link");
|
||||
},
|
||||
|
||||
_titleElement() {
|
||||
return this.element.querySelector(".main-link .title");
|
||||
},
|
||||
|
|
|
@ -246,10 +246,8 @@
|
|||
pointer-events: none;
|
||||
}
|
||||
|
||||
&.focused {
|
||||
box-shadow: inset 3px 0 0 var(--tertiary);
|
||||
}
|
||||
/* we have a custom focus indicator so we can remove the native one */
|
||||
// we have a custom focus indicator via .selected
|
||||
// we can remove the native one
|
||||
.title:focus {
|
||||
outline: none;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user