-
-
Notifications
You must be signed in to change notification settings - Fork 833
Draft: Add jump to date functionality to date headers in timeline #7317
Changes from all commits
594c7c7
23da673
9fa980c
e2d9751
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -50,21 +50,21 @@ limitations under the License. | |
} | ||
|
||
// round the top corners of the top button for the hover effect to be bounded | ||
&:first-child .mx_AccessibleButton:first-child { | ||
&:first-child .mx_AccessibleButton:not(.mx_AccessibleButton_hasKind):first-child { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Avoid style clashes when trying to put a primary accessible button inside of a There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There is a reason not to do that, it won't be accessible for keyboard-only users. Context Menus have strict focus management requirements There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. (new better flow suggestions welcome) 🙂 Popping off to a modal feels a little heavy. Tabbing to a date picker in the context menu seems in the realm of sane to handle for the keyboard. But the HTML5 date picker here isn't giving the best UX because ideally we could remove the "Go" button and "Go" automatically when a date is picked. This doesn't seem feasible though because there no way to distinguish a There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Tab in a context menu closes the context menu though as it is focus-locked There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think we can make this work. And seems acceptable under ARIA guidelines:
I had this mostly working in 9fa980c except for closing the menu, but I think I will try to adapt this to use the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is there a The It also seems counter-intuitive to me that I'm unable to navigate menus by What's the goal of setting There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
See https://developer.mozilla.org/en-US/docs/Web/Accessibility/Keyboard-navigable_JavaScript_widgets Technique 1 It is so the app doesn't have a million tabstops, and instead each widget is a tabstop with sane and expected keyboard & focus management, e.g arrows. The roving & treeview stuff was written to match the wai-aria practices Switching to roving was asked for by a lot of our a11y community, who have only the keyboard to use the app with and if they have to press tab ten times to get through every menu that just makes any action they want to take that much slower. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. #7336 fixes MAB, during a refactoring something got missed I think There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks for looking into the fixes for the |
||
border-radius: 8px 8px 0 0; // radius matches .mx_ContextualMenu | ||
} | ||
|
||
// round the bottom corners of the bottom button for the hover effect to be bounded | ||
&:last-child .mx_AccessibleButton:last-child { | ||
&:last-child .mx_AccessibleButton:not(.mx_AccessibleButton_hasKind):last-child { | ||
border-radius: 0 0 8px 8px; // radius matches .mx_ContextualMenu | ||
} | ||
|
||
// round all corners of the only button for the hover effect to be bounded | ||
&:first-child:last-child .mx_AccessibleButton:first-child:last-child { | ||
&:first-child:last-child .mx_AccessibleButton:not(.mx_AccessibleButton_hasKind):first-child:last-child { | ||
border-radius: 8px; // radius matches .mx_ContextualMenu | ||
} | ||
|
||
.mx_AccessibleButton { | ||
.mx_AccessibleButton:not(.mx_AccessibleButton_hasKind) { | ||
// pad the inside of the button so that the hover background is padded too | ||
padding-top: 12px; | ||
padding-bottom: 12px; | ||
|
@@ -130,7 +130,7 @@ limitations under the License. | |
} | ||
|
||
.mx_IconizedContextMenu_optionList_red { | ||
.mx_AccessibleButton { | ||
.mx_AccessibleButton:not(.mx_AccessibleButton_hasKind) { | ||
color: $alert !important; | ||
} | ||
|
||
|
@@ -148,7 +148,7 @@ limitations under the License. | |
} | ||
|
||
.mx_IconizedContextMenu_active { | ||
&.mx_AccessibleButton, .mx_AccessibleButton { | ||
&.mx_AccessibleButton:not(.mx_AccessibleButton_hasKind), .mx_AccessibleButton:not(.mx_AccessibleButton_hasKind) { | ||
color: $accent !important; | ||
} | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -127,6 +127,7 @@ limitations under the License. | |
transform 0.25s ease-out 0s, | ||
background-color 0.25s ease-out 0s; | ||
font-size: $font-10px; | ||
line-height: normal; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Reset |
||
transform: translateY(-13px); | ||
padding: 0 2px; | ||
background-color: $background; | ||
|
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.
@HarHarLinks As separate iterations, the plan is to make the date headers sticky so one is always visible.
And add a slash command
/jumptodate 2021-12-10