0
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-08-06 07:23:30 +08:00
discourse/plugins/poll
chapoi 747e23b5db
UX: chart legend styling (#41694)
Restyle the chart.js legend to be more clearly toggled on or off by
changing the design to an inset box when checked and apply opacity when
unchecked.

This commit adds 2 small reusable libs to achieve this across the
different chart implementations.

| What | Then | Now |
|--------|--------|--------|
| Unchecked | <img width="485" height="334" alt="CleanShot 2026-07-14 at
10 59 43"
src="https://github.com/user-attachments/assets/04ace368-ea4e-44ec-8270-74174dd8f602"
/> | <img width="488" height="347" alt="CleanShot 2026-07-14 at 10 58
10"
src="https://github.com/user-attachments/assets/ad8a2150-003e-405c-a93a-192956c25c59"
/> |
| Checked | <img width="485" height="334" alt="CleanShot 2026-07-14 at
10 59 29"
src="https://github.com/user-attachments/assets/128439c9-009b-4d09-9c07-93219abdf959"
/> | <img width="488" height="347" alt="CleanShot 2026-07-14 at 10 58
24"
src="https://github.com/user-attachments/assets/a9f40a03-5cec-4991-95f2-ec1fc35a126c"
/> |
2026-07-14 11:18:42 +02:00
..
app FEATURE: Record who closed a poll (#40989) 2026-06-29 12:22:43 +02:00
assets UX: chart legend styling (#41694) 2026-07-14 11:18:42 +02:00
config I18N: Update translations (#41584) 2026-07-12 17:29:05 +02:00
db/migrate FEATURE: Record who closed a poll (#40989) 2026-06-29 12:22:43 +02:00
jobs/regular
lib FEATURE: Record who closed a poll (#40989) 2026-06-29 12:22:43 +02:00
spec DEV: add clean_up_inactive_users_query modifier for plugins to extend query for inactive users (#41372) 2026-07-06 09:39:11 -07:00
test/javascripts FIX: Preserve poll view and in-progress vote across post cloaking (#41001) 2026-07-02 16:52:06 +02:00
package.json DEV: Add a script for generating external types in discourse-types (#37095) 2026-03-09 20:37:43 +01:00
plugin.rb DEV: add clean_up_inactive_users_query modifier for plugins to extend query for inactive users (#41372) 2026-07-06 09:39:11 -07:00
tsconfig.json DEV: Add a script for generating external types in discourse-types (#37095) 2026-03-09 20:37:43 +01:00