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

feat: allow customizing css filter and establish modified defaults #97

Merged
merged 4 commits into from
May 7, 2024

Conversation

BlakeStearman
Copy link
Member

@BlakeStearman BlakeStearman commented May 3, 2024

Sets the default CSS filter to turn on overflow, line-height and the flexbox options: flex, flex-basis, flex-direction, flex-flow, flex-grow, flex-shrink, flex-wrap.

Also added code to ensure that overriding or extending default css whiteList takes our defaults into account. Added tests to ensure that extending defaults and overriding work as intended, as well as to test out the CSS properties enabled by default.

@BlakeStearman BlakeStearman requested review from dasa and ssylvia May 3, 2024 20:59
@BlakeStearman BlakeStearman self-assigned this May 3, 2024
dasa
dasa previously approved these changes May 3, 2024
Copy link
Member

@dasa dasa left a comment

Choose a reason for hiding this comment

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

👍🏻

src/index.ts Outdated Show resolved Hide resolved
dasa
dasa previously approved these changes May 6, 2024
Copy link
Member

@dasa dasa left a comment

Choose a reason for hiding this comment

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

👍🏻

src/index.ts Outdated Show resolved Hide resolved
src/index.ts Outdated Show resolved Hide resolved
Changes to expose the `arcgisCSSWhiteList` as a public readonly property to allow users to get our defaults as well as use them as a base to modify. Eliminated unnecessary code and expanded the tests for this refactor.
@BlakeStearman
Copy link
Member Author

@ssylvia Thanks for the great suggestions. I've exposed the ArcGIS defaults as arcgisCSSWhiteList, and streamlined how it's created, which should make the code cleaner and easier to follow. I've also added a test for the public css whitelist property. Please let me know if you see any other areas that should be udpated.

@BlakeStearman BlakeStearman merged commit 55c51e1 into master May 7, 2024
4 checks passed
@BlakeStearman BlakeStearman deleted the css-filter-update branch May 7, 2024 16:57
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.

3 participants