-
Notifications
You must be signed in to change notification settings - Fork 63
Add a tabbed ContentSettings mobile modal #1846
Conversation
Storybook and Tailwind configuration previews: Ready Storybook: https://wordpress.github.io/openverse-frontend/_preview/1846 Please note that GitHub pages takes a little time to deploy newly pushed code, if the links above don't work or you see old versions, wait 5 minutes and try again. You can check the GitHub pages deployment action list to see the current status of the deployments. |
Size Change: -19.8 kB (-2%) Total Size: 813 kB
ℹ️ View Unchanged
|
I'm not sure the <VMobileModal>
<VTabs>
<template #tabs>
<VTab v-for="tab in tabs" :id="tab" :key="tab">
{{ 'tab name here' }}
</VTab>
<VIconButton
class="ms-auto"
@click="$emit('close')"
/>
</template>
<ContentTypeTabPanel />
<FiltersTabPanel />
</VTabs>
</VMobileModal> |
Thank you, @zackkrida, this is a much better suggestion! |
5b0460b
to
13aae6d
Compare
481b0a8
to
a5c8f35
Compare
e393c0a
to
6e147eb
Compare
5f95c66
to
c8c2147
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.
This looks amazing! The only issue I see is that the 'footer' of the modal, with the buttons, is not keyboard navigable.
For the filters sidebar, we've added the special handling of the Tab buttons on the last element: it should focus the first tabbable element in |
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.
LGTM! It looks really nice, @obulat.
Use ::after for tab underline and add medium size VTab Create VContentSettingsTabs component Fix Storybook build Move components to VHeaderMobile directory Fix tablist styles Remove unused style declaration Polish the modal Add text button snapshots Make the modal footer buttons available in the page Tabbing order Correct text button hover style Update snapshots
7653261
to
8a5f3ba
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.
Fixes
Fixes #1847 by @obulat
Description
This PR adds a
![Screen Shot 2022-09-22 at 5 28 01 PM](https://user-images.githubusercontent.com/15233243/191774611-72ee0755-3c12-47ab-88dc-4d8bad3d04e2.png)
VContentSettingsModal
component that is a modal 2/3 the height of the window. It is only displayed on mobile widths, and shows two tabs: Content switcher and the Filters.Testing Instructions
Run the app and go to 'https://localhost:8443/search/?q=cat&ff_new_header=on' on mobile width. When you click on the ContentSettings button in the header, the modal should open. You should be able to change the content settings (search type, filters) using the modal, and close it by clicking on the 'Close' button.
Checklist
Update index.md
).main
) or a parent feature branch.Developer Certificate of Origin
Developer Certificate of Origin