UTCWeb / particle

A starter kit for using the prototyping tool, Pattern Lab, in tandem with a Drupal theme. Utilizes Webpack for all asset management.
https://phase2.gitbook.io/frontend/
GNU General Public License v2.0
0 stars 10 forks source link

UTC-2606: Fix two row button deprecation for D10. #609

Closed UTCbridget closed 8 months ago

UTCbridget commented 8 months ago

Had to rebuild the twig template and add css to do the work. For some reason, the button group link (block field) counts its indexes past 20, which really makes the button["url"] is not empty VERY important. The not empty, of course, only counts the button urls that are "not empty", but the loop.index counts all 20+ of the parent. Soooooo, I removed the loop.index (which makes me sad bc it's a really good way to control arrays) and used css to divide the buttons into two rows. The difficulty was the odd numbered buttons, but that's good now.

BEFORE: Screenshot 2023-10-31 at 1 33 09 PM

AFTER: Screenshot 2023-10-31 at 1 33 02 PM

Six buttons with long titles, two rows Screenshot 2023-10-31 at 2 36 17 PM

UTCbridget commented 8 months ago

Added mobile and put the one-row back to original. (That wasn't the problem child and I had forgotten to undo my changes there.)

Library Screenshot 2023-10-31 at 2 34 44 PM

Six buttons, six rows: Screenshot 2023-10-31 at 2 30 50 PM