Skip to content

Conversation

@csswizardry
Copy link
Owner

Previously, batteryCritical overwrote batteryLow, whereas, really, it’s supposed to be a subset. This means we now get both properties set to true and both classes added to the <html> once battery level is ≤5%. The upshot of which is that your customisations can be much more succinct; anything you apply to low battery users will automatically also carry over to critical, and you don’t need to do anything twice.

Previously, `batteryCritical` overwrote `batteryLow`, whereas, really,
it’s supposed to be a subset. This means we now get both properties set
to `true` and both classes added to the `<html>` once battery level is
≤5%. The upshot of which is that your customisations can be much more
succinct; anything you apply to low battery users will automatically
also carry over to critical, and you don’t need to do anything twice.
@csswizardry csswizardry merged commit c38264b into main Aug 21, 2025
2 checks passed
@csswizardry csswizardry deleted the battery-inclusivity branch August 21, 2025 16:43
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