-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ensure map is focused before teleported grid #540
Conversation
Your demo site is ready! 🚀 Visit it here: https://ramp4-pcar4.github.io/story-ramp/fix-190/#/en/00000000-0000-0000-0000-000000000000 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 1 of 1 files at r1, all commit messages.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on @RyanCoulsonCA)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @RyanCoulsonCA)
src/components/panels/map-panel.vue
line 26 at r1 (raw file):
class="storylines-grid-container flex-1 min-w-0 min-h-0 ramp-styles" :class="{ 'sm:order-1 order-2': config.teleportGrid === 'left',
The simplest solution for both cases is probably to duplicate this and use a v-if
instead of doing the order trickery.
Doesn't need to be done now if this is needed ASAP
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @spencerwahl)
src/components/panels/map-panel.vue
line 26 at r1 (raw file):
Previously, spencerwahl (Spencer Wahl) wrote…
The simplest solution for both cases is probably to duplicate this and use a
v-if
instead of doing the order trickery.Doesn't need to be done now if this is needed ASAP
Yep, I agree. I'll have it done this afternoon 👍
ede34e2
to
77a0a4d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: 0 of 1 files reviewed, 1 unresolved discussion (waiting on @spencerwahl and @yileifeng)
src/components/panels/map-panel.vue
line 26 at r1 (raw file):
Previously, RyanCoulsonCA (Ryan Coulson) wrote…
Yep, I agree. I'll have it done this afternoon 👍
Donethanks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: 0 of 1 files reviewed, 1 unresolved discussion (waiting on @RyanCoulsonCA and @yileifeng)
src/components/panels/map-panel.vue
line 26 at r1 (raw file):
Previously, RyanCoulsonCA (Ryan Coulson) wrote…
Donethanks
I think you can just remove all of the order
classes?
77a0a4d
to
9afe2c2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: 0 of 1 files reviewed, 1 unresolved discussion (waiting on @spencerwahl and @yileifeng)
src/components/panels/map-panel.vue
line 26 at r1 (raw file):
Previously, spencerwahl (Spencer Wahl) wrote…
I think you can just remove all of the
order
classes?
I've removed the order-2
class from the right grid element, but it looks like we need to keep it on the other two elements so that the map still appears above the grid when in mobile mode.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 1 of 1 files at r3, all commit messages.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on @RyanCoulsonCA)
src/components/panels/map-panel.vue
line 26 at r1 (raw file):
Previously, RyanCoulsonCA (Ryan Coulson) wrote…
I've removed the
order-2
class from the right grid element, but it looks like we need to keep it on the other two elements so that the map still appears above the grid when in mobile mode.
lol yep, I forgot about mobile 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed all commit messages.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on @RyanCoulsonCA)
Related Item(s)
https://github.com/ramp4-pcar4/tcei-tmx-cwa-storylines/issues/190
Changes
Notes
While this now ensures that the map is focused prior to the grid when the grid is teleported to the right of the map, we will now have the same issue pop up if the grid is teleported to the left of the map.
It doesn't seem like there's a great solution for this. Adding
tabindex
conditionally makes the focus jump all over the place. I could potentially duplicate thediv
with thegrid-teleport
class and swap the elements depending on whether the grid is teleported to the left or right, but that adds a bunch of unnecessary duplication to the code.Testing
Steps:
000
product until you get to the first map slide (should the third slide down from the top)This change is![Reviewable](https://camo.githubusercontent.com/1541c4039185914e83657d3683ec25920c672c6c5c7ab4240ee7bff601adec0b/68747470733a2f2f72657669657761626c652e696f2f7265766965775f627574746f6e2e737667)