Skip to content
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

Upgrade controlled list manager to PrimeVue 4 #16

Merged
merged 46 commits into from
Sep 5, 2024
Merged

Conversation

jacobtylerwalls
Copy link
Member

@jacobtylerwalls jacobtylerwalls commented Jul 30, 2024

  • Handle primevue 4 breaking changes
  • Start building a theme with primary and semantic tokens
  • Remove some unnecessary styles
  • Improve accessibility

For details on a specific change, see the commit message.

Fixes #9

EDIT: now relies on the token theming in archesproject/arches#11262
EDIT: now relies on the accessibility mode change in archesproject/arches#11327

@chrabyrd
Copy link
Contributor

chrabyrd commented Aug 9, 2024

Overall this is looking good, but IMO the theming should be moved into dev/8.0.x, and logic should included that adds a css reset to all Vue components

@jacobtylerwalls jacobtylerwalls changed the base branch from main to jtw/fix-ts-problems August 9, 2024 19:20
Base automatically changed from jtw/fix-ts-problems to main August 9, 2024 20:35
Comment on lines 251 to 265
export const shouldUseContrast = () => {
return Array.from(document.getElementsByTagName("link")).some((el) =>
el.href.endsWith("accessibility.css"),
);
};
Copy link
Member Author

@jacobtylerwalls jacobtylerwalls Aug 9, 2024

Choose a reason for hiding this comment

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

I expect we'll replace this with something better once we have infra around consuming system settings (i.e. ACCESSIBILITY_MODE).

Copy link
Contributor

Choose a reason for hiding this comment

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

ya I'm wondering if this interaction can also be stubbed out in core at a very basic level as well, since the theme lives there now. We'll definitely use this across applications so if it can proved out in core instead, I think it'll be helpful.

Copy link
Member Author

Choose a reason for hiding this comment

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

Copy link
Contributor

@chrabyrd chrabyrd left a comment

Choose a reason for hiding this comment

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

lgtm!

@jacobtylerwalls jacobtylerwalls merged commit bf986c9 into main Sep 5, 2024
3 of 5 checks passed
@jacobtylerwalls jacobtylerwalls deleted the jtw/primevue-4 branch September 5, 2024 20:09
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.

Update controlled list manager to primevue 4
2 participants