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

Dynamically load available familyStyles #51

Merged
merged 34 commits into from
Jun 5, 2024
Merged

Conversation

mlwilkerson
Copy link
Member

@mlwilkerson mlwilkerson commented Jun 5, 2024

Removing the hardcoding of familyStyles

Up until now, each time Font Awesome releases a new familyStyle, it's been necessary to change the source code of this component to add the additional familyStyle.

With this PR, the set of available familyStyles for the active version of Font Awesome is retrieved from the GraphQL API.

Changing the UI

The above change also comes with a change of UI. There is no longer a filter button across the top row for each familyStyle to toggle its inclusion in the icon grid. Instead, there are two drop downs: Family and Style. Only the icons corresponding to the selected familyStyle are shown in the icon grid.

Duotone Custom Icons

Duotone custom icons are now working correctly.

Changing QueryHandler and queries

The type signature for QueryHandler has been changed to accept a second optional parameter: variables. This is to allow the use of GraphQL variables in queries.

See also the Changelog.]]

mlwilkerson and others added 30 commits May 15, 2024 16:10
necessary to ensure that it re-renders when this.selectedFamily or this.selectedState changes
@mlwilkerson mlwilkerson merged commit 98df3fd into main Jun 5, 2024
2 checks passed
@mlwilkerson mlwilkerson deleted the styles-dropdowns branch June 5, 2024 22:18
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