mirror of
https://github.com/gristlabs/grist-core.git
synced 2026-03-02 04:09:24 +00:00
(core) Updating flow and UI for shortcut warnings
Summary: - Popup looks different (better shadow, order and alignment) - Warnings need to be dismissed by checking "Don't show again" button, pressing Esc/Enter or clicking away just hides the popup, but it will be opened once again. - Dismissing one warning popup (about zoom keys), dismisses them all Test Plan: Updated Reviewers: georgegevoian Reviewed By: georgegevoian Differential Revision: https://phab.getgrist.com/D3683
This commit is contained in:
@@ -9,6 +9,7 @@ import {waitGrainObs} from 'app/common/gutil';
|
||||
import {IOpenController, IPopupDomCreator, IPopupOptions, PopupControl, popupOpen} from 'popweasel';
|
||||
import {Computed, Disposable, dom, DomContents, DomElementArg, input, keyframes,
|
||||
MultiHolder, Observable, styled} from 'grainjs';
|
||||
import {cssMenuElem} from 'app/client/ui2018/menus';
|
||||
|
||||
// IModalControl is passed into the function creating the body of the modal.
|
||||
export interface IModalControl {
|
||||
@@ -492,11 +493,10 @@ export function modalTooltip(
|
||||
|
||||
/* CSS styled components */
|
||||
|
||||
const cssModalTooltip = styled('div', `
|
||||
padding: 16px;
|
||||
const cssModalTooltip = styled(cssMenuElem, `
|
||||
padding: 16px 24px;
|
||||
background: ${theme.modalBg};
|
||||
border-radius: 3px;
|
||||
box-shadow: 0 2px 18px 0 ${theme.modalInnerShadow}, 0 0 1px 0 ${theme.modalOuterShadow};
|
||||
outline: none;
|
||||
& > div {
|
||||
outline: none;
|
||||
|
||||
Reference in New Issue
Block a user