This repository was archived by the owner on Sep 11, 2024. It is now read-only.
Add jump to date functionality to date headers in timeline v2#7339
Merged
MadLittleMods merged 57 commits intodevelopfrom Jan 27, 2022
Merged
Conversation
New TooltipTarget & TextWithTooltip were not roving-accessible
…use useRovingTabIndex
1. Only can tab to the datepicker input and "Go" when the "Jump to date" option is selected
1. Tabbing off the end of the ContextMenu will close it and return your focus back to where
it is on the page. Note: nothing special coded for this, just prevented from tabbing off
the end of the ContextMenu which was the end of the page.
1. Can navigate up and down the ContextMenu with Arrow keys as expected
MadLittleMods
commented
Dec 11, 2021
MadLittleMods
commented
Dec 11, 2021
MadLittleMods
commented
Dec 11, 2021
MadLittleMods
commented
Dec 11, 2021
MadLittleMods
commented
Dec 11, 2021
2 tasks
MadLittleMods
commented
Dec 11, 2021
❤️ |
… t3chguy/a11y2 � Conflicts: � src/components/views/rooms/EventTile.tsx
See #7339 (comment) We also added `:not(.mx_AccessibleButton_hasKind)` to the `res/css/views/context_menus/_IconizedContextMenu.scss` selectors so the style that was overriding this before is no longer interferring.
…s-in-timeline-v2 Conflicts: src/i18n/strings/en_EN.json
MadLittleMods
commented
Jan 25, 2022
| onDatePicked?: (dateString: string) => void; | ||
| } | ||
|
|
||
| const JumpToDatePicker: React.FC<IProps> = ({ ts, onDatePicked }: IProps) => { |
turt2live
reviewed
Jan 25, 2022
Member
turt2live
left a comment
There was a problem hiding this comment.
lgtm minus component naming
…s-in-timeline-v2 Conflicts: src/components/views/rooms/SearchResultTile.tsx
Contributor
Author
|
Thanks for the review @turt2live 🐇 |
Member
|
@MadLittleMods did this still need design review? |
Contributor
Author
|
@turt2live It's using the standard context menu styles so it's probably pretty good to go. The only thing non-standard is the jump to date calendar form area which we can always iterate in another PR if needed. Plus this is also behind a Labs flag so it doesn't really need to be held up by anything. |
Member
|
@MadLittleMods this caused all context menus to increase in size so definitely should've had design review |
Contributor
Author
MadLittleMods
added a commit
to element-hq/element-web
that referenced
this pull request
Jan 31, 2022
MadLittleMods
added a commit
to element-hq/element-web
that referenced
this pull request
Jan 31, 2022
MadLittleMods
added a commit
that referenced
this pull request
Feb 1, 2022
Fix element-hq/element-web#20801 Regressed in #7339 Relevant styles were first added in #4858 (context behind why the original styles were added)
MadLittleMods
added a commit
that referenced
this pull request
Feb 1, 2022
Fix element-hq/element-web#20801 Regressed in #7339 Relevant styles were first added in #4858 (context behind why the original styles were added) --- ## Cause Battling CSS specificity between the default and compact styles, https://specificity.keegan.st/ Known good (On `app.element.io` (expected)): ```css // 0 3 0 .mx_IconizedContextMenu .mx_IconizedContextMenu_optionList .mx_AccessibleButton { padding-top: 12px; padding-bottom: 12px; } // Compact styles override our default rules because they come // after the other styles (source order) and have the same specificity // 0 3 0 .mx_IconizedContextMenu.mx_IconizedContextMenu_compact .mx_IconizedContextMenu_optionList > * { padding: 8px 16px 8px 11px; } ``` Bad (On `develop` (broken)): ```css // Default rules always override because they have higher specificity. // The `:not()` selector doesn't add any extra specificity but the selectors inside the `:not(...)` do. // 0 4 0 .mx_IconizedContextMenu .mx_IconizedContextMenu_optionList .mx_AccessibleButton:not(.mx_AccessibleButton_hasKind) { padding-top: 12px; padding-bottom: 12px; } // 0 3 0 .mx_IconizedContextMenu.mx_IconizedContextMenu_compact .mx_IconizedContextMenu_optionList > * { padding: 8px 16px 8px 11px; } ```
celiacheff
pushed a commit
to tchapgouv/tchap-web-v4
that referenced
this pull request
Mar 15, 2022
5 tasks
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
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
v1 in #7317
Add jump to date functionality to date headers in timeline
Relies on this
matrix-js-sdkPR to add MSC3030/timestamp_to_eventsupport: matrix-org/matrix-js-sdk#2072Fix element-hq/element-web#7677
Part of MSC3030: matrix-org/matrix-spec-proposals#3030
Experimental Synapse implementation added in matrix-org/synapse#9445
Testing strategy
homeserver.yamlto enable themsc3030_enabledexperimental featureJump to dateLabs featureDev notes
Screen recordings:
Combining React callback refs and ref-refs,
TODO
MenuItems, Add jump to date functionality to date headers in timeline v2 #7339 (comment)ContextMenuRovingTabIndexrefactor to another PR, RefactorContextMenuto useRovingTabIndex(more consistent keyboard navigation accessibility) #7353/jumptodate 2021-12-10, Add/jumptodateslash command #7372This PR currently has no changelog labels, so will not be included in changelogs.
A reviewer can add one of:
T-Deprecation,T-Enhancement,T-Defect,T-Taskto indicate what type of change this is, or addType: [enhancement/defect/task]to the description and I'll add them for you.Preview: https://61f2350539af3b54bfe30e9a--matrix-react-sdk.netlify.app
⚠️ Do you trust the author of this PR? Maybe this build will steal your keys or give you malware. Exercise caution. Use test accounts.