-
Notifications
You must be signed in to change notification settings - Fork 280
[Remove Vuetify from Studio] Main navigation in Channels #5642
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
Open
Prashant-thakur77
wants to merge
75
commits into
learningequality:unstable
Choose a base branch
from
Prashant-thakur77:remove-vuetify-navigation-5369
base: unstable
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
75 commits
Select commit
Hold shift + click to select a range
7d07bcb
Mkaing the studionavigationtab
Prashant-thakur77 5d90ece
Updated
Prashant-thakur77 d43a8db
Updated
Prashant-thakur77 21025e9
Updated
Prashant-thakur77 57bc907
Updated
Prashant-thakur77 2015bdc
Updated
Prashant-thakur77 ebe5c29
Update
Prashant-thakur77 5203327
Update
Prashant-thakur77 c710316
Update styles
Prashant-thakur77 54c85eb
Updated sidepanel styles
Prashant-thakur77 50fa709
Updated sidepanel styles
Prashant-thakur77 95fc646
Updated sidepanel styles
Prashant-thakur77 7e1ec05
Updated sidepanel styles
Prashant-thakur77 34c8a02
Updated sidepanel styles
Prashant-thakur77 bc124a2
Updated sidepanel styles
Prashant-thakur77 8d53da0
Updated sidepanel styles
Prashant-thakur77 f30205b
Updated styles
Prashant-thakur77 2138fd1
Updated
Prashant-thakur77 143a1a4
Updated styles for tabs
Prashant-thakur77 101b323
Updated styles for tabs
Prashant-thakur77 14173b2
Updated styles for tabs
Prashant-thakur77 ed5b67d
Updated styles for tabs
Prashant-thakur77 730ada4
Updated styles of sidepanel
Prashant-thakur77 4c3496f
Updated styles of sidepanel
Prashant-thakur77 f5e56c9
Updated sidepanel styles
Prashant-thakur77 fc1acdf
Updated sidepanel styles
Prashant-thakur77 1c5082f
Updated sidepanel styles
Prashant-thakur77 0bfe43e
Updated sidepanel styles
Prashant-thakur77 d2ec50f
Added scrollable funcality to tabs
Prashant-thakur77 4b17df3
Updated the link design
Prashant-thakur77 443b2a5
Updated the link design
Prashant-thakur77 56edddb
Updated the link design
Prashant-thakur77 92bc483
Updated the link design
Prashant-thakur77 c70d685
Updated the link design
Prashant-thakur77 920f132
Updated the link design
Prashant-thakur77 79fa4b6
Updated the title styles
Prashant-thakur77 e7ba119
Updated the title styles
Prashant-thakur77 382de7c
Updated the sliding indicator
Prashant-thakur77 4b6871a
Updated the sliding indicator
Prashant-thakur77 c716f74
Updated class anmes
Prashant-thakur77 4d845b9
Updated the tabs container
Prashant-thakur77 7796ebb
Sliding approach
Prashant-thakur77 858af8c
Sliding approach
Prashant-thakur77 2205f10
old approach after review
Prashant-thakur77 445ccf2
updated code for tabs
Prashant-thakur77 dc79262
Updated menu styles
Prashant-thakur77 46afbee
Added StudioPanelOption.vue
Prashant-thakur77 1ba780d
Added StudioPanelOption.vue
Prashant-thakur77 3983437
Added StudioPanelOption.vue
Prashant-thakur77 6af0c90
Added StudioPanelOption.vue
Prashant-thakur77 c8a54eb
Added StudioPanelOption.vue
Prashant-thakur77 7004dad
Updated styles
Prashant-thakur77 2aefb26
Updated the skipnavigationlink functionality
Prashant-thakur77 5fbb3ea
Removed the padding added to the sie panle modal and rather added tha…
Prashant-thakur77 ff95e6e
updatedstyles
Prashant-thakur77 f7d437e
updatedstyles
Prashant-thakur77 0c1a2de
Updated Catalogfiltercontent to handle padding wihout sidepanelmodal
Prashant-thakur77 d2383be
Updated boolean
Prashant-thakur77 9057ce4
Updated the tabtrack method to studionavigation
Prashant-thakur77 07aee46
Updated the tabtrack method to studionavigation
Prashant-thakur77 4ab184e
finalising
Prashant-thakur77 3268fe4
Test file updated
Prashant-thakur77 49f3990
Test file created
Prashant-thakur77 21d7a44
Updated test files
Prashant-thakur77 427fb74
Updated strings
Prashant-thakur77 74eac84
Test files
Prashant-thakur77 e32937c
Final updates
Prashant-thakur77 4910918
Final updates
Prashant-thakur77 79a0f38
Final updates
Prashant-thakur77 2427703
Updated class names
Prashant-thakur77 adb8767
precommit
Prashant-thakur77 4740318
Added aria-label to the nav
Prashant-thakur77 fbcf22d
Updated
Prashant-thakur77 243528f
updated
Prashant-thakur77 bf31a49
[pre-commit.ci lite] apply automatic fixes
pre-commit-ci-lite[bot] File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
89 changes: 89 additions & 0 deletions
89
contentcuration/contentcuration/frontend/shared/views/SkipNavigationLink.vue
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,89 @@ | ||
| <template> | ||
|
|
||
| <div class="skip-nav-link"> | ||
| <KButton | ||
| ref="button" | ||
| :style="linkStyles" | ||
| appearance="basic-link" | ||
| :text="$tr('skipToMainContentAction')" | ||
| @click="handleClickSkipLink" | ||
| /> | ||
| </div> | ||
|
|
||
| </template> | ||
|
|
||
|
|
||
| <script> | ||
|
|
||
| export default { | ||
| name: 'SkipNavigationLink', | ||
| computed: { | ||
| linkStyles() { | ||
| return { | ||
| backgroundColor: this.$themeTokens.surface + ' !important', | ||
| }; | ||
| }, | ||
| }, | ||
| methods: { | ||
| handleClickSkipLink() { | ||
| // Every page where this is supposed to work needs to have a top-level | ||
| // element with 'role' and 'id' attribute equal to 'main' and 'tabindex= -1'. | ||
| // If it doesn't have one, clicking this link is a noop, but will re-focus itself | ||
| // as a convenience (in case main div is still loading). | ||
| const mainEl = document.getElementById('main'); | ||
| if (mainEl) { | ||
| // If it exists, actually target and focus on the main header | ||
| const header = mainEl.querySelector('h1'); | ||
| if (header) { | ||
| // HACK: Need to set its tabindex attribute on the fly to get tab behavior | ||
| header.setAttribute('tabindex', -1); | ||
| header.focus(); | ||
| } else { | ||
| mainEl.focus(); | ||
| } | ||
| } else { | ||
| // NOTE: the button retains focus, but loses :focus styling after hitting "Enter" | ||
| // TODO: look into theme input modality to see if we can get consistent | ||
| // styling when in keyboard modality | ||
| this.$refs.button.$el.focus(); | ||
| } | ||
| }, | ||
| }, | ||
| $trs: { | ||
| skipToMainContentAction: { | ||
| message: 'Skip to main content', | ||
| context: | ||
| 'Button label for the hamburger menu in the top left corner. Accessible only to those who use screen readers and other assistive technology (AT).', | ||
| }, | ||
| }, | ||
| }; | ||
|
|
||
| </script> | ||
|
|
||
|
|
||
| <style lang="scss" scoped> | ||
|
|
||
| @import '~kolibri-design-system/lib/styles/definitions'; | ||
|
|
||
| .skip-nav-link { | ||
| position: relative; | ||
| z-index: 2; | ||
| } | ||
|
|
||
| .skip-nav-link a { | ||
| @extend %dropshadow-2dp; | ||
|
|
||
| position: absolute; | ||
| left: -1000px; | ||
| padding: 8px 16px; | ||
| font-size: 14px; | ||
| outline-offset: 0 !important; | ||
|
|
||
| &:focus { | ||
| top: 8px; | ||
| left: 8px; | ||
| z-index: 2; | ||
| } | ||
| } | ||
|
|
||
| </style> |
Oops, something went wrong.
Oops, something went wrong.
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.
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.
@MisRob This prop is added here to deal with the full width functionality of sidepanelmodel