Review main Merged

71076[BUGFIX] Fix problem of disabled buttons in pagination

Sybille Peters CR +2 V +2 Easy +16 −16 updated 11/03/21, 21:24

Commit message

Due to improvements for accessibility, the contrast between
color and background color was increased for disabled buttons.
This resulted in less visible difference between the active
and the disabled buttons in the pagination controls.

The disabled buttons are now replaced by placeholder buttons.
This solves the above problem and also helps to visually
declutter the pagination controls.

Just removing the buttons entirely would have changed the
placement of the buttons and resulted in them jumping back
and forth when paging.

Review

  • Code review CR +2 Done
    • Benni Mack +2
    • Jonas Eberle +1
    • Nikita Hovratov +1
    • Rachel Foucard +1
  • Verified V +2 Done
    • Benni Mack +2
    • Jonas Eberle +1
    • Nikita Hovratov +1
    • Rachel Foucard +1
    • core-ci +1 CI

Issues 1

Files 4

Review log 1417

  1. Sybille Peters uploaded patch set 1 09/13/21, 16:57

  2. Sybille Peters uploaded patch set 2 09/13/21, 17:04

  3. Sybille Peters commented on patch set 1 09/13/21, 17:06

    I added a screenshot of the result in the issue.
  4. core-ci voted on patch set 1 V -1 09/13/21, 17:16 Core CI is not happy: https://gitlab.typo3.org/typo3/CI/cms/-/pipelines/16667

  5. core-ci voted on patch set 2 V +1 09/13/21, 17:23 Core CI is happy: https://gitlab.typo3.org/typo3/CI/cms/-/pipelines/16669

  6. Oli Bartsch commented on patch set 2 09/13/21, 18:28

    SimplePagination.html:20

    Usually "empty-empty" is used as space icon in Core.
  7. Sybille Peters uploaded patch set 3 09/15/21, 06:08

  8. Sybille Peters commented on patch set 3 09/15/21, 06:09

    SimplePagination.html:20 Reply

    Done
  9. core-ci voted on patch set 3 V +1 09/15/21, 06:22 Core CI is happy: https://gitlab.typo3.org/typo3/CI/cms/-/pipelines/16732

  10. Rachel Foucard voted on patch set 3 V +1 CR +1 09/15/21, 06:42

  11. Benni Mack commented on patch set 3 09/15/21, 08:49

    Shouldn't we rather change the contrast between color and background color for disabled buttons again? I can imagine this "problem" is more than just within the pagination...
  12. Jonas Eberle voted on patch set 3 V +1 CR +1 09/15/21, 08:59

  13. Jonas Eberle commented on patch set 3 09/15/21, 10:41

    Reply

    Sorry Benni, I haven't seen your comment before and I might have unconsciously "resolved" it. I think this solution is good for the pagination because it lends to the way we currently treat disabled "actions" in the list & filelist modules. IMHO improving contrast or bringing the pagination style more in line with other button-bars could be done in a follow-up.
  14. Benni Mack commented on patch set 3 09/15/21, 19:01

    Reply

    ok
  15. Nikita Hovratov voted on patch set 3 V +1 CR +1 09/29/21, 13:49

  16. Benni Mack voted on patch set 3 V +2 CR +2 11/03/21, 21:24

  17. Benni Mack merged patch set 4 11/03/21, 21:24