-
Notifications
You must be signed in to change notification settings - Fork 286
[DO NOT MERGE BEFORE Q1 RELEASED] [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
93
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
93 commits
Select commit
Hold shift + click to select a range
2abb6f2
Mkaing the studionavigationtab
Prashant-thakur77 332f96e
Updated
Prashant-thakur77 64fb494
Updated
Prashant-thakur77 3e21994
Updated
Prashant-thakur77 fe6b5a5
Updated
Prashant-thakur77 95e347c
Updated
Prashant-thakur77 039bafd
Update
Prashant-thakur77 c05b5d5
Update
Prashant-thakur77 33cbd12
Update styles
Prashant-thakur77 f96fe29
Updated sidepanel styles
Prashant-thakur77 d015f98
Updated sidepanel styles
Prashant-thakur77 e2fc8b7
Updated sidepanel styles
Prashant-thakur77 39382af
Updated sidepanel styles
Prashant-thakur77 74e36a1
Updated sidepanel styles
Prashant-thakur77 6d970af
Updated sidepanel styles
Prashant-thakur77 83c4e43
Updated sidepanel styles
Prashant-thakur77 66901e4
Updated styles
Prashant-thakur77 0f3ad7d
Updated
Prashant-thakur77 9481e85
Updated styles for tabs
Prashant-thakur77 a089ca2
Updated styles for tabs
Prashant-thakur77 02e1533
Updated styles for tabs
Prashant-thakur77 45ad89c
Updated styles for tabs
Prashant-thakur77 0594368
Updated styles of sidepanel
Prashant-thakur77 1fb8da3
Updated styles of sidepanel
Prashant-thakur77 0487e5b
Updated sidepanel styles
Prashant-thakur77 50a4c88
Updated sidepanel styles
Prashant-thakur77 ea26a4a
Updated sidepanel styles
Prashant-thakur77 1c725fe
Updated sidepanel styles
Prashant-thakur77 b6f66d9
Added scrollable funcality to tabs
Prashant-thakur77 940616f
Updated the link design
Prashant-thakur77 83597ba
Updated the link design
Prashant-thakur77 ca2c542
Updated the link design
Prashant-thakur77 bdea792
Updated the link design
Prashant-thakur77 de37099
Updated the link design
Prashant-thakur77 78199de
Updated the link design
Prashant-thakur77 c14f13c
Updated the title styles
Prashant-thakur77 2e7f760
Updated the title styles
Prashant-thakur77 80c1d26
Updated the sliding indicator
Prashant-thakur77 3a343f1
Updated the sliding indicator
Prashant-thakur77 41864af
Updated class anmes
Prashant-thakur77 c400059
Updated the tabs container
Prashant-thakur77 20ed8e3
Sliding approach
Prashant-thakur77 0502efe
Sliding approach
Prashant-thakur77 1d9a554
old approach after review
Prashant-thakur77 3d241d0
updated code for tabs
Prashant-thakur77 f4881c9
Updated menu styles
Prashant-thakur77 ee542ac
Added StudioPanelOption.vue
Prashant-thakur77 a4d8b80
Added StudioPanelOption.vue
Prashant-thakur77 2553d76
Added StudioPanelOption.vue
Prashant-thakur77 49e59d3
Added StudioPanelOption.vue
Prashant-thakur77 195d8ff
Added StudioPanelOption.vue
Prashant-thakur77 9e1c1e8
Updated styles
Prashant-thakur77 1be5f92
Updated the skipnavigationlink functionality
Prashant-thakur77 9238a73
Removed the padding added to the sie panle modal and rather added tha…
Prashant-thakur77 57fa951
updatedstyles
Prashant-thakur77 985197b
updatedstyles
Prashant-thakur77 c1b90ce
Updated Catalogfiltercontent to handle padding wihout sidepanelmodal
Prashant-thakur77 2dcfbfd
Updated boolean
Prashant-thakur77 3fd9b26
Updated the tabtrack method to studionavigation
Prashant-thakur77 7e3f19c
Updated the tabtrack method to studionavigation
Prashant-thakur77 928bcd0
finalising
Prashant-thakur77 a6d06eb
Test file updated
Prashant-thakur77 fc0c00b
Test file created
Prashant-thakur77 dba9daf
Updated test files
Prashant-thakur77 2a18e34
Updated strings
Prashant-thakur77 646166a
Test files
Prashant-thakur77 210d42e
Final updates
Prashant-thakur77 10324f4
Final updates
Prashant-thakur77 075e74b
Final updates
Prashant-thakur77 4387da5
Updated class names
Prashant-thakur77 20e51cd
precommit
Prashant-thakur77 b64a0ec
Added aria-label to the nav
Prashant-thakur77 acf13d8
Updated
Prashant-thakur77 70fa8fb
updated
Prashant-thakur77 174b5a1
resolving review
Prashant-thakur77 d7b4bf0
used ktexttruncaotr
Prashant-thakur77 a0607c6
aligned the ktexttruncator with ktoolbar
Prashant-thakur77 b1e40b2
removed aria-live
Prashant-thakur77 e6dcc2b
updated
Prashant-thakur77 ba8ba95
don
Prashant-thakur77 6d22ebc
decresd offsst
Prashant-thakur77 2e5131d
updated
Prashant-thakur77 50ff191
vreated a diff file to sidepanel to manage codebas
Prashant-thakur77 416a5d6
UPdated with reviews
Prashant-thakur77 1c13025
Removed magic stirngs
Prashant-thakur77 1ea547a
done
Prashant-thakur77 bbae166
Made updates
Prashant-thakur77 9dac0b0
Made updates
Prashant-thakur77 62b9618
Made updates
Prashant-thakur77 a07b69a
Made updates
Prashant-thakur77 bdd6012
Made updates
Prashant-thakur77 583ba3c
corrected test suits
Prashant-thakur77 3c8c499
[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
...entcuration/contentcuration/frontend/shared/views/StudioNavigation/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