[Key.Command]: '⌘',
[Key.Control]: 'Ctrl',
[Key.Option]: '⌥',
+ [Key.Click]: 'click',
};
export function KeyboardHintKeys({ command }: { command: string }) {
color: rgb(106,117,144);
}
+.emotion-2 {
+ display: -webkit-box;
+ display: -webkit-flex;
+ display: -ms-flexbox;
+ display: flex;
+ -webkit-align-items: center;
+ -webkit-box-align: center;
+ -ms-flex-align: center;
+ align-items: center;
+ -webkit-box-pack: center;
+ -ms-flex-pack: center;
+ -webkit-justify-content: center;
+ justify-content: center;
+ padding-left: 0.125rem;
+ padding-right: 0.125rem;
+ border-radius: 0.125rem;
+ background-color: rgb(225,230,243);
+ color: rgb(62,67,87);
+}
+
<div>
<div
class="emotion-0 emotion-1"
<div
class="sw-flex sw-gap-1"
>
- <span>
+ <span
+ class="emotion-2 emotion-3"
+ >
click
</span>
</div>
color: rgb(106,117,144);
}
+.emotion-2 {
+ display: -webkit-box;
+ display: -webkit-flex;
+ display: -ms-flexbox;
+ display: flex;
+ -webkit-align-items: center;
+ -webkit-box-align: center;
+ -ms-flex-align: center;
+ align-items: center;
+ -webkit-box-pack: center;
+ -ms-flex-pack: center;
+ -webkit-justify-content: center;
+ justify-content: center;
+ padding-left: 0.125rem;
+ padding-right: 0.125rem;
+ border-radius: 0.125rem;
+ background-color: rgb(225,230,243);
+ color: rgb(62,67,87);
+}
+
<div>
<div
class="emotion-0 emotion-1"
<div
class="sw-flex sw-gap-1"
>
- <span>
+ <span
+ class="emotion-2 emotion-3"
+ >
click
</span>
</div>
</div>
`;
+exports[`should render Click 1`] = `
+.emotion-0 {
+ display: -webkit-box;
+ display: -webkit-flex;
+ display: -ms-flexbox;
+ display: flex;
+ -webkit-align-items: center;
+ -webkit-box-align: center;
+ -ms-flex-align: center;
+ align-items: center;
+ -webkit-box-pack: center;
+ -ms-flex-pack: center;
+ -webkit-justify-content: center;
+ justify-content: center;
+ padding-left: 0.125rem;
+ padding-right: 0.125rem;
+ border-radius: 0.125rem;
+ background-color: rgb(225,230,243);
+ color: rgb(62,67,87);
+}
+
+<div>
+ <div
+ class="sw-flex sw-gap-1"
+ >
+ <span
+ class="emotion-0 emotion-1"
+ >
+ click
+ </span>
+ </div>
+</div>
+`;
+
exports[`should render Command 1`] = `
.emotion-0 {
display: -webkit-box;
<span>
+
</span>
- <span>
+ <span
+ class="emotion-0 emotion-1"
+ >
click
</span>
</div>
box-sizing: border-box;
border: 1px solid rgb(253,162,155);
color: rgb(62,67,87);
+ font-weight: 600;
word-break: break-word;
background-color: rgb(255,255,255);
}
box-sizing: border-box;
border: 1px solid rgb(253,162,155);
color: rgb(62,67,87);
+ font-weight: 600;
word-break: break-word;
background-color: rgb(255,255,255);
}
? themeBorder('default', 'issueBoxSelectedBorder')
: themeBorder('default', 'issueBoxBorder')};
color: ${themeContrast('pageBlock')};
+ font-weight: ${(props) => (props.selected ? 600 : 400)};
word-break: break-word;
background-color: ${themeColor('pageBlock')};
Shift = 'Shift',
Space = ' ',
Tab = 'Tab',
+ Click = 'Click',
}
export function isShortcut(event: KeyboardEvent): boolean {
);
return (
- <ScreenPositionHelper className="sw-z-filterbar">
- {({ top }) => (
- <nav
- aria-label={openIssue ? translate('list_of_issues') : translate('filters')}
- className="it__issues-nav-bar sw-overflow-y-auto"
- style={{ height: `calc((100vh - ${top}px) - 60px)` }} // 60px (footer)
- >
- <SideBarStyle className="sw-w-[300px] lg:sw-w-[390px]">
- <A11ySkipTarget
- anchor="issues_sidebar"
- label={
- openIssue ? translate('issues.skip_to_list') : translate('issues.skip_to_filters')
- }
- weight={10}
- />
+ <SideBarStyle>
+ <ScreenPositionHelper className="sw-z-filterbar">
+ {({ top }) => (
+ <nav
+ aria-label={openIssue ? translate('list_of_issues') : translate('filters')}
+ className="it__issues-nav-bar sw-overflow-y-auto"
+ style={{ height: `calc((100vh - ${top}px) - 60px)` }} // 60px (footer)
+ >
+ <div className="sw-w-[300px] lg:sw-w-[390px]">
+ <A11ySkipTarget
+ anchor="issues_sidebar"
+ label={
+ openIssue
+ ? translate('issues.skip_to_list')
+ : translate('issues.skip_to_filters')
+ }
+ weight={10}
+ />
- {openIssue ? (
- <div>
- {warning && <div className="sw-py-4">{warning}</div>}
-
- <SubnavigationIssuesList
- fetchMoreIssues={this.fetchMoreIssues}
- issues={issues}
- loading={loading}
- loadingMore={loadingMore}
- onFlowSelect={this.selectFlow}
- onIssueSelect={this.openIssue}
- onLocationSelect={this.selectLocation}
- paging={paging}
- selected={selected}
- selectedFlowIndex={selectedFlowIndex}
- selectedLocationIndex={selectedLocationIndex}
- />
- </div>
- ) : (
- this.renderFacets(warning)
- )}
- </SideBarStyle>
- </nav>
- )}
- </ScreenPositionHelper>
+ {openIssue ? (
+ <div>
+ {warning && <div className="sw-py-4">{warning}</div>}
+
+ <SubnavigationIssuesList
+ fetchMoreIssues={this.fetchMoreIssues}
+ issues={issues}
+ loading={loading}
+ loadingMore={loadingMore}
+ onFlowSelect={this.selectFlow}
+ onIssueSelect={this.openIssue}
+ onLocationSelect={this.selectLocation}
+ paging={paging}
+ selected={selected}
+ selectedFlowIndex={selectedFlowIndex}
+ selectedLocationIndex={selectedLocationIndex}
+ />
+ </div>
+ ) : (
+ this.renderFacets(warning)
+ )}
+ </div>
+ </nav>
+ )}
+ </ScreenPositionHelper>
+ </SideBarStyle>
);
}
{this.renderSide(openIssue)}
- <MainContentStyle role="main" className="sw-relative sw-ml-2 sw-p-6 sw-flex-1">
+ <MainContentStyle role="main" className="sw-relative sw-ml-12 sw-p-6 sw-flex-1">
{this.renderHeader({ openIssue, paging, selectedIndex })}
{this.renderPage()}
const { canSetHome, effortTotal, paging, selectedIndex } = props;
return (
- <div className="sw-body-sm sw-flex sw-items-center sw-gap-6 sw-justify-end">
+ <div className="sw-body-sm sw-flex sw-items-center sw-gap-6 sw-justify-end sw-flex-1">
<KeyboardHint title={translate('issues.to_select_issues')} command="ArrowUp ArrowDown" />
<KeyboardHint title={translate('issues.to_navigate')} command="ArrowLeft ArrowRight" />
}) {
return nbSelectedItems > 0 && nbSelectedItems < nbSelectableItems ? (
<div className="sw-pt-4">
- <KeyboardHint command={translate('shortcuts.section.global.facets.multiselection')} />
+ <KeyboardHint
+ command="Control + Click"
+ title={translate('shortcuts.section.global.facets.multiselection.title')}
+ />
</div>
) : null;
}
shortcuts.section.global.shortcuts=open this window
shortcuts.section.global.facets.multiselection=Press Ctrl to add to selection
shortcuts.section.global.facets.multiselection.mac=Press \u2318 to add to selection
+shortcuts.section.global.facets.multiselection.title=Add to selection
shortcuts.section.issues=Issues Page
shortcuts.section.issues.navigate_between_issues=navigate between issues