fe8c267a14
* Remove duplicate declarations and add height and overflow properties Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Move mx_TimelineCard__header under mx_BaseCard_header for normalization Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Normalize mx_BaseCard_close position Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Normalize className of header - mx_BaseCard_header__ThreadPanel - mx_BaseCard_header__TimelineCard Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Normalize header's button size Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Normalize inline start header margin Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * normalize header bottom margin for PinnedMessagesCard and TimelineCard Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Normalize header declarations Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Add mixin RightPanelCard Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Move common declarations - top level Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Move common declarations - mx_BaseCard_header Remove specific declarations on PinnedMessagesCard Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Move common declarations - mx_BaseCard_back and mx_BaseCard_close Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Create a common class name - mx_BaseCard_header_title Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Create a common class name - mx_BaseCard_header_title - ThreadPanel Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Move common declarations - mx_BaseCard_header_title Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Move common declarations - span:first-of-type Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Remove redundant declarations Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Rename a variable to remove --ThreadPanel_header-button-size Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Remove class name - mx_BaseCard_header_title Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Remove mx_BaseCard_header_title--ThreadPanel and h2 declarations from PinnedMessagesCard Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Headers need Heading Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Use spacing variables Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Move common style rules of mx_ContextualMenu inside mx_BaseCard_header_title to BaseCard leaving style rules specific to ThreadPanel. Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Hide long header title with ellipsis Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Merge style rules - BaseCard_header-button-size Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Merge style rules - BaseCard_header margin-bottom Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Merge style rules - BaseCard back and close margin Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Merge style rules - BaseCard back ~ mx_BaseCard_header_title Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Merge style rules - mx_BaseCard_header_title Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Return special declarations to _ThreadPanel.scss Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Remove the mixin Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Add mx_BaseCard_header_title_button--option Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Remove redundant margin from AppTileFullWidth Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Header on mx_RoomSummaryCard - remove default declarations Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Remove default declarations from mx_UserInfo Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com> * Use variables - _BaseCard.scss Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>
106 lines
2.4 KiB
Text
106 lines
2.4 KiB
Text
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
exports[`ThreadPanel Header expect that All filter for ThreadPanelHeader properly renders Show: All threads 1`] = `
|
|
<div
|
|
className="mx_BaseCard_header_title"
|
|
>
|
|
<Heading
|
|
className="mx_BaseCard_header_title_heading"
|
|
size="h4"
|
|
>
|
|
Threads
|
|
</Heading>
|
|
<ContextMenuButton
|
|
className="mx_ThreadPanel_dropdown"
|
|
inputRef={
|
|
Object {
|
|
"current": null,
|
|
}
|
|
}
|
|
isExpanded={false}
|
|
onClick={[Function]}
|
|
>
|
|
Show: All threads
|
|
</ContextMenuButton>
|
|
</div>
|
|
`;
|
|
|
|
exports[`ThreadPanel Header expect that My filter for ThreadPanelHeader properly renders Show: My threads 1`] = `
|
|
<div
|
|
className="mx_BaseCard_header_title"
|
|
>
|
|
<Heading
|
|
className="mx_BaseCard_header_title_heading"
|
|
size="h4"
|
|
>
|
|
Threads
|
|
</Heading>
|
|
<ContextMenuButton
|
|
className="mx_ThreadPanel_dropdown"
|
|
inputRef={
|
|
Object {
|
|
"current": null,
|
|
}
|
|
}
|
|
isExpanded={false}
|
|
onClick={[Function]}
|
|
>
|
|
Show: My threads
|
|
</ContextMenuButton>
|
|
</div>
|
|
`;
|
|
|
|
exports[`ThreadPanel Header expect that ThreadPanelHeader has the correct option selected in the context menu 1`] = `
|
|
<RovingAccessibleButton
|
|
aria-checked={true}
|
|
className="mx_ThreadPanel_Header_FilterOptionItem"
|
|
onClick={[Function]}
|
|
role="menuitemradio"
|
|
>
|
|
<AccessibleButton
|
|
aria-checked={true}
|
|
className="mx_ThreadPanel_Header_FilterOptionItem"
|
|
element="div"
|
|
inputRef={
|
|
Object {
|
|
"current": <div
|
|
aria-checked="true"
|
|
class="mx_AccessibleButton mx_ThreadPanel_Header_FilterOptionItem focus-visible"
|
|
data-focus-visible-added=""
|
|
role="menuitemradio"
|
|
tabindex="0"
|
|
>
|
|
<span>
|
|
All threads
|
|
</span>
|
|
<span>
|
|
Shows all threads from current room
|
|
</span>
|
|
</div>,
|
|
}
|
|
}
|
|
onClick={[Function]}
|
|
onFocus={[Function]}
|
|
role="menuitemradio"
|
|
tabIndex={0}
|
|
>
|
|
<div
|
|
aria-checked={true}
|
|
className="mx_AccessibleButton mx_ThreadPanel_Header_FilterOptionItem"
|
|
onClick={[Function]}
|
|
onFocus={[Function]}
|
|
onKeyDown={[Function]}
|
|
onKeyUp={[Function]}
|
|
role="menuitemradio"
|
|
tabIndex={0}
|
|
>
|
|
<span>
|
|
All threads
|
|
</span>
|
|
<span>
|
|
Shows all threads from current room
|
|
</span>
|
|
</div>
|
|
</AccessibleButton>
|
|
</RovingAccessibleButton>
|
|
`;
|