Skip to content

v0.3.1

Choose a tag to compare

@rameerez rameerez released this 16 Sep 18:59
· 7 commits to main since this release

A patch on 0.3.0: the official-account mark is a check, not a star.

0.3.0 shipped a five-pointed star as the verified badge. It came from a host icon named verified_badge whose path is actually drawn as a star, and it was copied on the strength of the name without anyone looking at the shape.

A star says favourite, or rated. It does not say this account is really us. And at the size the badge renders — roughly 14px, next to a name in an inbox row — a solid star and a solid rosette are the same small blob, so the tick was the entire point and it was the one thing missing.

0.3.0 ★ a solid star
0.3.1 a scalloped rosette with the tick knocked out

The glyph is now heroicons check-badge. fill-rule="evenodd" is what knocks the tick out of the rosette — without it the shape fills solid and you are back to a blob.

Nothing else changed

Same option, same CSS variable, same accessible label, same colour:

acts_as_messager verified: true

The #0284c7 default still clears WCAG 1.4.11's 3:1 on every ground it lands on, including the inbox row's hover state, which is where the familiar #1d9bf0 had failed at 2.73:1. Overrides are unchanged: --chats-verified for the colour, config.verified_badge or ejecting chats/shared/_verified_badge.html.erb for the glyph.

Upgrading

Nothing to do. If you set verified: true on 0.3.0 you get a better mark; if you never set it, nothing about your app changes.

Verified

Tests 320 runs, 1342 assertions, 0 failures
Databases SQLite, PostgreSQL
Ruby 3.3, 3.4, 4.0
Rails 7.1, 7.2, 8.1

Full detail in CHANGELOG.md.

Full Changelog: v0.3.0...v0.3.1