Skip to content

Commit a9dc047

Browse files
committed
Fix linting issues
1 parent 03ed5a1 commit a9dc047

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

app/components/primer/alpha/tree_view.pcss

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@
143143
text-decoration-color: var(--control-fgColor-rest);
144144
}
145145

146-
& :has(.TreeViewItemContent[aria-disabled=true]) {
146+
& :has(.TreeViewItemContent[aria-disabled="true"]) {
147147
cursor: not-allowed;
148148
}
149149

@@ -223,20 +223,24 @@
223223
& .TreeViewItemVisual {
224224
fill: var(--control-fgColor-disabled);
225225

226+
/* stylelint-disable-next-line max-nesting-depth, selector-max-compound-selectors, selector-max-specificity */
226227
& svg {
227228
fill: var(--control-fgColor-disabled);
228229
}
229230
}
230231

231232
& .FormControl-checkbox {
233+
/* stylelint-disable-next-line max-nesting-depth */
232234
@media (hover: hover) {
235+
/* stylelint-disable-next-line max-nesting-depth, selector-max-specificity */
233236
&:hover {
234237
cursor: not-allowed;
235238
}
236239
}
237240
}
238241

239242
@media (hover: hover) {
243+
/* stylelint-disable-next-line max-nesting-depth */
240244
&:hover {
241245
cursor: not-allowed;
242246
background-color: transparent;

app/components/primer/alpha/tree_view/tree_view.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ export class TreeViewElement extends HTMLElement {
4646

4747
const newInputs = []
4848

49-
// eslint-disable-next-line custom-elements/no-dom-traversal-in-connectedcallback
5049
for (const node of this.querySelectorAll('[role=treeitem][aria-checked=true]')) {
5150
const newInput = this.formInputPrototype.cloneNode() as HTMLInputElement
5251
newInput.removeAttribute('data-target')

0 commit comments

Comments
 (0)