Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Scout » [neon] How to set the background of the field with focus to yellow
[neon] How to set the background of the field with focus to yellow [message #1732719] Thu, 19 May 2016 13:50 Go to next message
Urs Beeli is currently offline Urs BeeliFriend
Messages: 573
Registered: October 2012
Location: Bern, Switzerland
Senior Member
We want to set the background of the field that currently has the focus to yellow.

We thought this should be fairly simple using CSS.

We have the following file in our html project:
js/scout/form/fields/FormField-cisi.css
with the following content:
.form-field {
  &:focus,
  &.focused {
	
	  & > .field {
	      background-colour: yellow;
	  }
  }
}


we've also tried the following:
.form-field {
  & > .field {
     &:focus {
	 background-colour: yellow;
     }
  }
}


But neither of these worked. Can anyone give us a hint how to achieve our goal?

[Updated on: Thu, 19 May 2016 13:50]

Report message to a moderator

Re: [neon] How to set the background of the field with focus to yellow [message #1732779 is a reply to message #1732719] Fri, 20 May 2016 08:03 Go to previous messageGo to next message
Rene Eigenheer is currently offline Rene EigenheerFriend
Messages: 109
Registered: July 2009
Senior Member
try

.form-field {

  & > .field {
    &:focus {
    	background-color: yellow;
    }
  }

}
Re: [neon] How to set the background of the field with focus to yellow [message #1732936 is a reply to message #1732779] Mon, 23 May 2016 08:27 Go to previous message
Urs Beeli is currently offline Urs BeeliFriend
Messages: 573
Registered: October 2012
Location: Bern, Switzerland
Senior Member
This is embarrassing Smile

I looked at your proposal for ages and the only difference I saw compared to mine was the whitespace and I couldn't believe that makes a difference. After about 10 Minutes of staring at it I realised that once again I fell victim to having learned proper English Wink

color works much better in CSS than colour
Previous Topic:Neon - Can't create java class
Next Topic:[neon] M7/RC1 AccessControlService problems
Goto Forum:
  


Current Time: Fri Apr 26 23:56:20 GMT 2024

Powered by FUDForum. Page generated in 0.02943 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top