-
Notifications
You must be signed in to change notification settings - Fork 898
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow navigation via tab key in welcome page
fix brave/brave-browser#5504 Welcome page navigation via tab is impossible without this change since all non-visible content is hidden visually but still accessible via keyboard. This change fixes it and improves other element focus.
- Loading branch information
1 parent
225f03a
commit 0a6d4bc
Showing
12 changed files
with
105 additions
and
26 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
/* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this file, | ||
* You can obtain one at http://mozilla.org/MPL/2.0/. */ | ||
|
||
import ITheme from 'brave-ui/theme/theme-interface' | ||
import IThemeWelcomePage from './welcome-theme' | ||
import defaultTheme from 'brave-ui/theme/brave-default' | ||
import colors from 'brave-ui/theme/colors' | ||
|
||
const welcomeDarkTheme: ITheme & IThemeWelcomePage = { | ||
...defaultTheme, | ||
name: 'Welcome Dark', | ||
color: { | ||
...defaultTheme.color, | ||
text: colors.white, | ||
panelBackground: colors.grey900, | ||
outlineColor: 'rgba(255,255,255,0.5)' | ||
} | ||
} | ||
|
||
export default welcomeDarkTheme |
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,22 @@ | ||
/* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this file, | ||
* You can obtain one at http://mozilla.org/MPL/2.0/. */ | ||
|
||
import ITheme from 'brave-ui/theme/theme-interface' | ||
import IThemeWelcomePage from './welcome-theme' | ||
import defaultTheme from 'brave-ui/theme/brave-default' | ||
import colors from 'brave-ui/theme/colors' | ||
|
||
const welcomeLightTheme: ITheme & IThemeWelcomePage = { | ||
...defaultTheme, | ||
name: 'Welcome Light', | ||
color: { | ||
...defaultTheme.color, | ||
text: colors.neutral900, | ||
panelBackground: '#F9F9FD', | ||
panelBackgroundSecondary: colors.neutral000, | ||
outlineColor: 'rgba(255,80,0,0.2)' | ||
} | ||
} | ||
|
||
export default welcomeLightTheme |
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,9 @@ | ||
/* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this file, | ||
* You can obtain one at http://mozilla.org/MPL/2.0/. */ | ||
|
||
export default interface IThemeWelcomePage { | ||
color: { | ||
outlineColor: string | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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