Closed (fixed)
Project:
Crossword
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
13 Oct 2020 at 19:33 UTC
Updated:
11 Dec 2020 at 19:09 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
danflanagan8Here's a patch. To clarify UI change #2, here is the before and after markup I'm talking about.
Before:
After:
This will potentially upset custom styles, but I really think this is the best place to put the button.
Comment #3
gnumatrix commentedThat works great! I've updated my theme to compensate for the changes. I do like how you made the button arrows. Nifty. Some thoughts for you.
1) A "prev-clue-express" seems to be a natural thing to add, to balance things out. I'd like it to be left of the active-clues-text. I guess this might be tricky if someone wanted them both on the right. Maybe add them to both sides and hide one on each? I think with display:flex the order of the display can be set via CSS explicitly, so that's an option too, I suppose.
2) Using the crosswords with an iPad and an Apple Pencil works remarkably well, and this next-clue makes it just that much better as there are no tabs or cursor keys in that usage scenario.
3) I really like the shift-left/shift-right. Works very well, particularly that it also wraps around. Kinda wish tab did that too, so that when you're on the last clue it would go to the beginning again.
4) For the instructions, would it be feasible to have an extra checkbox at the top (in the area where the "show errors" checkbox is) to say "show instructions" and then have that work as a toggle for the instructions block? Not sure if it makes sense to hard-code the name of the block being toggled or if a block selection would need to be added somewhere to make this work. I think I might also mentioned having a similar checkbox for showing/hiding the clues. For those that want to see them.
Check out https://www.500foods.com/crosswords if you would like to see how I've styled the new buttons so far.
Comment #4
danflanagan8Here's a new patch that should fix those broken tests.
Regarding the comments:
#1: Part of my thinking is that I would expect clues to be left aligned in most themes. I was also thinking that button would mostly be used by mobile users and wanted to keep that as clean as possible.
#2: Excellent!
#3: Probably a good suggestion. Updating that tabbing could be done unobtrusively at any time, so I'll probably do that at some point.
#4: I've been thinking about instructions a lot actually. I was thinking about adding a help link to the controls section that opens up the instructions in a modal/dialog.
Comment #5
gnumatrix commented#1: Clean is good, naturally, but if you can manage to sneak in a prev button it would still be helpful. Considerably easier in theming to hide something than it is to add something. Balance is also important. Even if they are both right-aligned, there's still a lot of UX value in being able to go back to the prev unsolved clue, particularly if you tapped on the next unsolved clue and just wanted to go back...
#4: Being able to toggle an encompassing div class (from "instructions-view" to "instructions-hidden" for example) for the instructions (and a separate one for the clues) I think might be simpler. And could be made modal if the themer wanted it to be modal.
Comment #6
danflanagan8Hey @GNUMatrix,
I finally got around to making some final updates to this issue. I took your suggestion #1 from comment #5. This may require you to touch up styling again. The active clues markup now looks like this:
I also updated the tab functions per your suggestion #3 from comment #3.
I'm still planning to do something with the instructions, but I'll do it in a new issue.
Comment #8
danflanagan8Comment #9
gnumatrix commentedI like it! Works great. Trivial to update the styling, so all good there, too.