As @matmarex suggested I used the same colors for warning as in shared.css for .warningbox
Bug: T58611
Change-Id: Icba7787db4cc77ee793b9637c60b5977d28dc8cf
# Apply the same CSS class used on the input to the message:
'cssclass' => $emailauthenticationclass,
);
# Apply the same CSS class used on the input to the message:
'cssclass' => $emailauthenticationclass,
);
- $defaultPreferences['emailaddress']['cssclass'] = $emailauthenticationclass;
-/* Reuses colors from mediawiki.special.changeemail.css */
+/* Reuses colors from mediawiki.legacy/shared.css */
.mw-email-not-authenticated .mw-input,
.mw-email-none .mw-input{
.mw-email-not-authenticated .mw-input,
.mw-email-none .mw-input{
- border: 1px solid #FF8080;
- background-color: #FFC0C0;
- color: black;
+ border: 1px solid #fde29b;
+ background-color: #fdf1d1;
+ color: #000000;
}
/* Authenticated email field has its own class too. Unstyled by default */
/*
}
/* Authenticated email field has its own class too. Unstyled by default */
/*
* Placeholder to verify bug 34302
* @covers Preferences::profilePreferences
*/
* Placeholder to verify bug 34302
* @covers Preferences::profilePreferences
*/
- public function testEmailFieldsWhenUserHasNoEmail() {
+ public function testEmailAuthenticationFieldWhenUserHasNoEmail() {
$prefs = $this->prefsFor( 'noemail' );
$this->assertArrayHasKey( 'cssclass',
$prefs = $this->prefsFor( 'noemail' );
$this->assertArrayHasKey( 'cssclass',
+ $prefs['emailauthentication']
- $this->assertEquals( 'mw-email-none', $prefs['emailaddress']['cssclass'] );
+ $this->assertEquals( 'mw-email-none', $prefs['emailauthentication']['cssclass'] );
}
/**
* Placeholder to verify bug 34302
* @covers Preferences::profilePreferences
*/
}
/**
* Placeholder to verify bug 34302
* @covers Preferences::profilePreferences
*/
- public function testEmailFieldsWhenUserEmailNotAuthenticated() {
+ public function testEmailAuthenticationFieldWhenUserEmailNotAuthenticated() {
$prefs = $this->prefsFor( 'notauth' );
$this->assertArrayHasKey( 'cssclass',
$prefs = $this->prefsFor( 'notauth' );
$this->assertArrayHasKey( 'cssclass',
+ $prefs['emailauthentication']
- $this->assertEquals( 'mw-email-not-authenticated', $prefs['emailaddress']['cssclass'] );
+ $this->assertEquals( 'mw-email-not-authenticated', $prefs['emailauthentication']['cssclass'] );
}
/**
* Placeholder to verify bug 34302
* @covers Preferences::profilePreferences
*/
}
/**
* Placeholder to verify bug 34302
* @covers Preferences::profilePreferences
*/
- public function testEmailFieldsWhenUserEmailIsAuthenticated() {
+ public function testEmailAuthenticationFieldWhenUserEmailIsAuthenticated() {
$prefs = $this->prefsFor( 'auth' );
$this->assertArrayHasKey( 'cssclass',
$prefs = $this->prefsFor( 'auth' );
$this->assertArrayHasKey( 'cssclass',
+ $prefs['emailauthentication']
- $this->assertEquals( 'mw-email-authenticated', $prefs['emailaddress']['cssclass'] );
+ $this->assertEquals( 'mw-email-authenticated', $prefs['emailauthentication']['cssclass'] );