-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(update): cherry pick missing v5 updates onto main (#262)
* fix(context menu): Fix for context menu use when zoomed out (#249) * feat(graph): Add selection based zoom (#248) * feat(context menu): add prop to hide the context menu kebab (#250)
- Loading branch information
Showing
20 changed files
with
509 additions
and
85 deletions.
There are no files selected for viewing
This file contains 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 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
43 changes: 43 additions & 0 deletions
43
packages/demo-app-ts/src/demos/topologyPackageDemo/AreaDragHint.css
This file contains 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,43 @@ | ||
.area-drag-hint__hint-container { | ||
justify-content: center; | ||
display: flex; | ||
pointer-events: none; | ||
position: absolute; | ||
top: var(--pf-t--global--spacer--sm); | ||
left: 0; | ||
right: 0; | ||
z-index: 99; | ||
} | ||
.area-drag-hint__hint-background { | ||
background-color: var(--pf-t--global--background--color--primary--default); | ||
border: 1px solid var(--pf-t--global--border--color--nonstatus--gray--default); | ||
border-radius: 8px; | ||
padding: var(--pf-t--global--spacer--xs) var(--pf-t--global--spacer--sm); | ||
pointer-events: none; | ||
} | ||
|
||
.area-drag-hint { | ||
align-items: center; | ||
display: flex; | ||
} | ||
.area-drag-hint__icon { | ||
color: var(--pf-t--global--icon--color--status--info--default); | ||
} | ||
.area-drag-hint__text { | ||
margin-left: var(--pf-t--global--spacer--sm); | ||
} | ||
.area-drag-hint-shortcut__cell { | ||
padding-left: var(--pf-t--global--spacer--sm); | ||
} | ||
|
||
.area-drag-hint-shortcut__command:not(:last-child):after { | ||
content: ' + '; | ||
} | ||
|
||
.area-drag-hint-shortcut__kbd { | ||
border: var(--pf-t--global--border--width--regular) solid var(--pf-t--global--border--color--nonstatus--gray--default); | ||
border-radius: 3px; | ||
color: var(--pf-t--global--text--color--subtle); | ||
font-size: var(--pf-t--global--font--size--sm); | ||
padding: 1px 3px; | ||
} |
50 changes: 50 additions & 0 deletions
50
packages/demo-app-ts/src/demos/topologyPackageDemo/AreaDragHint.tsx
This file contains 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,50 @@ | ||
import * as React from 'react'; | ||
import { InfoCircleIcon, MouseIcon } from '@patternfly/react-icons'; | ||
|
||
import './AreaDragHint.css'; | ||
|
||
const AreaDragHint: React.FC = () => { | ||
return ( | ||
<div className="area-drag-hint__hint-container"> | ||
<div className="area-drag-hint__hint-background"> | ||
<div className="area-drag-hint"> | ||
<InfoCircleIcon className="area-drag-hint__icon" /> | ||
<span className="area-drag-hint__text"> | ||
<table> | ||
<tbody> | ||
<tr> | ||
<td className="area-drag-hint-shortcut__cell"> | ||
<span className="area-drag-hint-shortcut__command"> | ||
<kbd className="area-drag-hint-shortcut__kbd">Shift</kbd> | ||
</span> | ||
<span className="area-drag-hint-shortcut__command"> | ||
<kbd className="area-drag-hint-shortcut__kbd"> | ||
<MouseIcon /> Drag | ||
</kbd> | ||
</span> | ||
</td> | ||
<td className="area-drag-hint-shortcut__cell">Select nodes in area</td> | ||
</tr> | ||
<tr> | ||
<td className="area-drag-hint-shortcut__cell"> | ||
<span className="area-drag-hint-shortcut__command"> | ||
<kbd className="area-drag-hint-shortcut__kbd">Ctrl</kbd> | ||
</span> | ||
<span className="area-drag-hint-shortcut__command"> | ||
<kbd className="area-drag-hint-shortcut__kbd"> | ||
<MouseIcon /> Drag | ||
</kbd> | ||
</span> | ||
</td> | ||
<td className="area-drag-hint-shortcut__cell">Zoom to selected area</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
</span> | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default AreaDragHint; |
This file contains 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 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 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 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 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 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
Oops, something went wrong.