-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add eslint-plugin-vue-scoped-css
#26720
Add eslint-plugin-vue-scoped-css
#26720
Conversation
@@ -676,22 +671,6 @@ export function initRepositoryActionView() { | |||
|
|||
/* selectors here are intentionally exact to only match fullscreen */ | |||
|
|||
.full.height > .action-view-right { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I also ever questioned about this 😂
Glad to see they are moved to a global scope.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes I was surprised it even worked, but apparently "scoped" style in Vue only means the final part of the selector needs to be local to the component, not the whole selector.
Pretty bad decision from Vue authors imho to not scope it completely to the component.
let's ship this pr🚀 |
* upstream/main: Move `modules/mirror` to `services` (go-gitea#26737) [skip ci] Updated translations via Crowdin Fix template bugs in recently_pushed_new_branches.tmpl (go-gitea#26744) Fix incorrect "tabindex" attributes (go-gitea#26733) Simplify helper CSS classes and avoid abuse (go-gitea#26728) Remove fomantic loader module (go-gitea#26670) Fix link in mirror docs (go-gitea#26719) Add `eslint-plugin-vue-scoped-css` (go-gitea#26720) Fixed text overflow in dropdown menu (go-gitea#26694) Make web context initialize correctly for different cases (go-gitea#26726) Remove incorrect CSS helper classes (go-gitea#26712) Focus editor on "Write" tab click (go-gitea#26714)
Adds eslint-plugin-vue-scoped-css and fixes discovered issues which are:
.full.height
parent in a<style scoped>
block so the rule could not find the parent. Move these into the unscoped block instead. They worked before and after.