(Prototype) Alternate hexmap implementation #100
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This change builds on the prototype by @cyberselkie to emit a hexmap on a page. It emits a list of buttons above a shoelace tab group. The buttons should display as hex map tiles. Clicking the buttons selects the appropriate tab in the group. Eventually, selecting a tab should also highlight/select the hex in the map above.
This change uses AlpineJS for the button action, injecting the
x-ref
attribute into thesl-tabs-group
so the buttons can call theshow()
method on the group instead of requiring an external script or module.None of the styling is in place. This PR is intended for comparison only, the canonical PR should be the original submission with updates and this PR and commit should be thrown away at that time.