Skip to content

Commit

Permalink
feat: new lock screen and challenge modal design (#957)
Browse files Browse the repository at this point in the history
  • Loading branch information
amanharwara authored Apr 11, 2022
1 parent 3a2ff2f commit c16f23a
Show file tree
Hide file tree
Showing 12 changed files with 434 additions and 385 deletions.
2 changes: 1 addition & 1 deletion app/assets/javascripts/components/ApplicationView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import { NoteGroupView } from '@/components/NoteGroupView';
import { Footer } from '@/components/Footer';
import { SessionsModal } from '@/components/SessionsModal';
import { PreferencesViewWrapper } from '@/components/Preferences/PreferencesViewWrapper';
import { ChallengeModal } from '@/components/ChallengeModal';
import { ChallengeModal } from '@/components/ChallengeModal/ChallengeModal';
import { NotesContextMenu } from '@/components/NotesContextMenu';
import { PurchaseFlowWrapper } from '@/components/PurchaseFlow/PurchaseFlowWrapper';
import { render } from 'preact';
Expand Down
8 changes: 4 additions & 4 deletions app/assets/javascripts/components/Button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ const getClassName = (

let focusHoverStates =
variant === 'normal'
? 'focus:bg-contrast hover:bg-contrast'
: 'hover:brightness-130 focus:brightness-130';
? 'focus:bg-contrast focus:outline-none hover:bg-contrast'
: 'hover:brightness-130 focus:outline-none focus:brightness-130';

if (danger) {
colors =
Expand All @@ -39,8 +39,8 @@ const getClassName = (
: 'bg-grey-2 color-info-contrast';
focusHoverStates =
variant === 'normal'
? 'focus:bg-default hover:bg-default'
: 'focus:brightness-default hover:brightness-default';
? 'focus:bg-default focus:outline-none hover:bg-default'
: 'focus:brightness-default focus:outline-none hover:brightness-default';
}

return `${baseClass} ${colors} ${borders} ${focusHoverStates} ${cursor}`;
Expand Down
Loading

0 comments on commit c16f23a

Please sign in to comment.