Skip to content

Refactor config tab container CSS selectors#199

Merged
jonathangreen merged 1 commit intomainfrom
chore/refactor-config-tab-container-selectors
Feb 27, 2026
Merged

Refactor config tab container CSS selectors#199
jonathangreen merged 1 commit intomainfrom
chore/refactor-config-tab-container-selectors

Conversation

@jonathangreen
Copy link
Member

@jonathangreen jonathangreen commented Feb 25, 2026

Description

Replaces the broad ul:not(.input-list-ul):not(.announcements-ul):not(.debug-results-list) selector in config_tab_container.scss with a positively scoped .list-container > ul selector. Also removes the li:not(.panel):not(.announcement) exclusions which should be unnecessary once the ul is properly scoped.

Motivation and Context

The previous approach required every new component rendering a <ul> inside .tab-content to add itself to a growing :not() exclusion list. This was the root cause of the !important overrides needed in the debug authentication styles.

From what I can tell, the rule only ever targets the bare <ul> rendered by EditableConfigList inside .list-container (line 168), and no <li> elements inside that <ul> have .panel or .announcement classes. But given the accumulated tech debt with all the negative selectors, it's hard to be fully confident there isn't an edge case I'm missing. Initial visual inspection of the config list pages looks fine, but this could use extra eyes.

Stacked on #198.

How Has This Been Tested?

  • Production webpack build compiles successfully
  • Spot-checked config list pages visually — styling appears unchanged
  • Would appreciate additional visual review of Collections, Libraries, Patron Auth Services, and other config list pages to confirm nothing regressed

Checklist:

  • I have updated the documentation accordingly.
  • All new and existing tests passed.

@jonathangreen jonathangreen requested a review from a team February 25, 2026 21:25
Copy link
Contributor

@tdilauro tdilauro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a nice change. Looks like it should work as expected.

Base automatically changed from feature/patron-debug-authentication to main February 27, 2026 14:48
…() exclusions

The broad `ul:not(...)` selector in config_tab_container.scss required
every new component with a <ul> inside .tab-content to add itself to
the exclusion list. Since the rule only targets the <ul> inside
EditableConfigList's .list-container, scope it there directly with
`.list-container > ul`. This also removes the li:not(.panel):not(.announcement)
exclusions which are unnecessary once the ul is properly scoped.
@jonathangreen jonathangreen force-pushed the chore/refactor-config-tab-container-selectors branch from 23d5f98 to 3d28717 Compare February 27, 2026 14:49
@jonathangreen jonathangreen merged commit 3d846a5 into main Feb 27, 2026
1 check passed
@jonathangreen jonathangreen deleted the chore/refactor-config-tab-container-selectors branch February 27, 2026 14:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants