Skip to content

Commit

Permalink
Fixing green button focus (#391)
Browse files Browse the repository at this point in the history
  • Loading branch information
NickGeek committed Jan 24, 2022
1 parent 6f9befc commit f67076f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
5 changes: 0 additions & 5 deletions app/src/app/DynamicAppCss.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,6 @@ export function createDynamicCss(store: Store<IStoreState, MicroPadAction>): voi
input:not([type]):focus:not([readonly])+label, input[type=text]:not(.browser-default):focus:not([readonly])+label, input[type=password]:not(.browser-default):focus:not([readonly])+label, input[type=email]:not(.browser-default):focus:not([readonly])+label, input[type=url]:not(.browser-default):focus:not([readonly])+label, input[type=time]:not(.browser-default):focus:not([readonly])+label, input[type=date]:not(.browser-default):focus:not([readonly])+label, input[type=datetime]:not(.browser-default):focus:not([readonly])+label, input[type=datetime-local]:not(.browser-default):focus:not([readonly])+label, input[type=tel]:not(.browser-default):focus:not([readonly])+label, input[type=number]:not(.browser-default):focus:not([readonly])+label, input[type=search]:not(.browser-default):focus:not([readonly])+label, textarea.materialize-textarea:focus:not([readonly])+label {
color: ${theme.background === '#fff' ? theme.chrome : theme.text} !important;
}
.btn:hover, .btn-flat:hover, .btn-large:hover, .btn-small:hover {
background-color: ${theme.accent};
color: ${theme.accentContent};
}
.modal {
background-color: ${theme.background};
Expand Down
13 changes: 13 additions & 0 deletions app/src/app/root.css
Original file line number Diff line number Diff line change
Expand Up @@ -166,3 +166,16 @@ strong {
border-bottom: 2px solid var(--mp-theme-accentContent);
}

.btn:hover, .btn-flat:hover, .btn-large:hover, .btn-small:hover {
background-color: var(--mp-theme-accent);
color: var(--mp-theme-accentContent);
}

.red.btn, .red.btn-large, .red.btn-small {
color: #fff !important;
}

.btn:focus, .btn-large:focus, .btn-small:focus, .btn-floating:focus {
background-color: var(--mp-theme-chrome);
color: var(--mp-theme-explorerContent);
}

0 comments on commit f67076f

Please sign in to comment.