Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
--sl-color-accent-light
in Search component is not defined #2840This PR fixes a few UI issues related to the Pagefind UI.
Note that I'm not super happy with the changesets, I think I didn't manage to get the right balance between what is changed and the level of detail in the changeset, maybe even 1 changeset could be enough? Happy to iterate on this based on feedback.
Unknown CSS variable
This issue was the first one reported in #2840. This PR removes the unknown CSS variable (
--pagefind-ui-primary
) and now uses the desired one (--sl-color-text
) which was already the color used when the browser was falling back to the default color when the variable was not defined.The
--pagefind-ui-primary
variable is used in 2 places in Pagefind, the first one being the "Load more results" button:The second place is the checkbox background color when using filters where some extra CSS was added to fix the tick color:
Ultimately, some changes could be made upstream to avoid this issue and rely on accent colors for the checkbox and should be beneficial for all Pagefind users as it's also an issue with a default Pagefind setup.
Metadata
When using the Pagefind metadata feature, the UI was broken. I tried to use the same UI as inline code at the moment for the tags.
This PR improves the UI but as usual when it comes to UI, that's not my strong suit so happy to iterate on this based on feedback/suggestions.