FortAwesome / Font-Awesome

The iconic SVG, font, and CSS toolkit
https://fontawesome.com
Other
73.68k stars 12.19k forks source link

Bug: [Graphql API] Unable to use FamilyStyleFilter in SvgsFilter for Sharp Duotone #20313

Open GLaDO8 opened 3 months ago

GLaDO8 commented 3 months ago

Bug description

How do I filter SVGs using the family and style filter in the SvgsFilter object to see only Sharp Duotone SVGs?

I see from the API response that the family, style and prefix for Sharp Duotone is as follows,

"familyStyle": {
    "family": "sharp-duotone",
    "prefix": "fasds",
    "style": "solid"
},

But the FamilyStyleFilter doesn't support the following family and style enums.

Reproducible test case

No response

Screenshots

No response

Font Awesome version

v6.6.0

Serving

Other (as specified in the bug description)

Implementation

Other (as specified in the bug description)

Browser and Operating System


Web bug report checklist

robmadole commented 3 months ago

Hey @GLaDO8 can you share the full query you are using?

Here's an example of one I have:

query {
  search(version: "6.6.0", query: "house") {
    id
    svgs(filter: {
      familyStyles: [
        { family: SHARP_DUOTONE, style: SOLID }
      ]
    }) {
      html
      familyStyle {
        family
      }
    }
  }
}