Allow negative order number to push any grid item to start immediately
-
Status Quo:
- Select a grid item block → Block Settings → General → Column-Order.
- You can set an ordinal numbers on a scale (1-16). Only positive numbers!
Note: Grid items without an explicit ordinal number default to 0.
Problem: You can only set positive numbers.
- ? Therefore (for a certain breakpoint) you can easily quickly put a particular grid item to the end, because any positive number is higher than 0.
- ? But you cannot quickly push a grid item to the start!
As all others have 0! The only way is giving your desired grid item anorder: 1
and then give all the other grid items earlier in source code a higher ordinal number. Quite inconvenient!
Proposed Solution
- UX: Allow to set positive and negative
order
numbers for grid items. - UI-wise I propose: Offer both a number scale (gives good visual measure to compare “where is it in relation to others”) plus a number input box which accepts any pos/neg integer (quicker input, plus extraordinary large numbers possible if necessary).
Sketch
Order: [ -3 ??] - 8 7 6 5 4 ③ 2 1 0 1 2 3 4 5 6 7 8 +
Example Use Case
- You have a grid container, e.g. divided into 12 columns.
- You have grid items:
a) Let’s say you have 6 of them.
a) You give them different column-spans.
b) They are sorted by source code order by default - On some breakpoint (e.g. Mobile) you want to sort one of the later elements (e.g. the 5th one) to be the first.
- You select the 5th element and give it
order: -1
. - It’s immediately the first grid item, because all other grid items default to
order: 0
.
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘Allow negative order number to push any grid item to start immediately’ is closed to new replies.