Skip to content
This repository has been archived by the owner on Jan 24, 2023. It is now read-only.

Commit

Permalink
Merge pull request #1372 from SUSE/fix-autocomplete-background
Browse files Browse the repository at this point in the history
Remove the yellow autocomplete background in dark form fields
  • Loading branch information
nwmac committed Nov 16, 2017
2 parents 4738bbc + 0dbba02 commit 058ef0c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
* deploy, etc)
* @param {appLocalStorage} appLocalStorage - service provides access to the local storage facility of the web browser
* @param {appBusyService} appBusyService - the application busy service
*
*
*/
function ApplicationsListController($scope, $translate, $state, $timeout, $q, $window, modelManager, appErrorService,
appUtilsService, cfOrganizationModel, cfAppWallActions, appLocalStorage, appBusyService) {
Expand Down
22 changes: 13 additions & 9 deletions components/suse-branding/src/dark-form.scss
Original file line number Diff line number Diff line change
@@ -1,31 +1,35 @@
@mixin dark-form() {
.form-group {
background-color: $suse-secondary;
// We override the border color in all cases, so we also need to ensure the focus z-index overrides the
// error z-index (see focus below)
background-color: $suse-secondary; // We override the border color in all cases, so we also need to ensure the focus z-index overrides the error z-index (see focus below)
border-color: $login-form-border-color;
color: $suse-text;

&.focus {
border-color: $suse-primary;
}

.control-label, .checkbox-input, .checkbox-input.checked .checkbox-input-label {
.control-label,
.checkbox-input,
.checkbox-input.checked .checkbox-input-label {
color: darken($suse-text, 10%);
}

input {
color: $suse-text;
text-shadow: 0 0 0 $suse-text;
-webkit-text-fill-color: $suse-text;
}

search-box {
.dropdown-menu {
border-color: $login-form-border-color;
background: $suse-secondary;
}
}
input, // include base elements to avoid blip when selecting auto-complete value from drop down
textarea,
select,
:-webkit-autofill,
:-webkit-autofill:hover,
:-webkit-autofill:focus {
box-shadow: 0 0 0px 1000px $suse-secondary inset !important;
-webkit-box-shadow: 0 0 0px 1000px $suse-secondary inset !important;
}
}
}

0 comments on commit 058ef0c

Please sign in to comment.