Skip to content

Commit

Permalink
removes workaround for element styles thanks to bugs apache/royale-co…
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosrovira authored and piotrzarzycki21 committed Mar 27, 2018
1 parent 5540a9c commit df9808d
Show file tree
Hide file tree
Showing 11 changed files with 42 additions and 39 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,13 @@

@namespace "http://www.w3.org/1999/xhtml";


body{
background: #fff;
}

.container {
background: #efefef;
border-radius: 10px;
padding: 20px;
}
}

Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ limitations under the License.
<html:H3 text="Jewel RadioButton"/>

<j:RadioButton text="RadioButton 1" groupName="radios" value="Test 1"/>
<j:RadioButton text="RadioButton 2" groupName="radios" value="Test 2"/>
<j:RadioButton text="RadioButton 2" groupName="radios" value="Test 2" selected="true"/>
<j:RadioButton text="RadioButton 3" groupName="radios" value="Test 3"/>

<j:RadioButton text="Disabled">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,11 +99,11 @@ package org.apache.royale.jewel

input = addElementToWrapper(this,'input') as HTMLInputElement;
input.type = 'checkbox';
input.className = 'input';
//input.className = 'input';
label.appendChild(input);

checkbox = document.createElement('span') as HTMLSpanElement;
checkbox.className = 'span';
//checkbox.className = 'span';
label.appendChild(checkbox);

positioner = label as WrappedHTMLElement;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -316,14 +316,14 @@ package org.apache.royale.jewel

icon = addElementToWrapper(this,'input') as HTMLInputElement;
icon.type = "radio";
icon.className = 'input';
//icon.className = 'input';
icon.id = '_radio_' + + Math.random();
label.appendChild(icon);

textNode = document.createTextNode('') as Text;

radio = document.createElement('span') as HTMLSpanElement;
radio.className = 'span';
//radio.className = 'span';
radio.appendChild(textNode);
label.appendChild(radio);
//radio.addEventListener('mouseover', mouseOverHandler, false);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ package org.apache.royale.jewel

var input:HTMLInputElement = addElementToWrapper(this,'input') as HTMLInputElement;
input.setAttribute('type', 'range');
input.className = "slider";
//input.className = "slider";

//attach input handler to dispatch royale change event when user write in textinput
//goog.events.listen(element, 'change', killChangeHandler);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ package org.apache.royale.jewel

input = addElementToWrapper(this,'input') as HTMLInputElement;
input.setAttribute('type', 'text');
input.className = "input";
//input.className = "input";

//attach input handler to dispatch royale change event when user write in textinput
//goog.events.listen(element, 'change', killChangeHandler);
Expand Down
48 changes: 24 additions & 24 deletions frameworks/themes/JewelTheme/src/main/resources/defaults.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ $checkbox-label-font-size: 16px
height: $checkbox-button-size

// -- INPUT
.input
input
+appear(none)
cursor: pointer
display: inline-block
Expand Down Expand Up @@ -102,7 +102,7 @@ $checkbox-label-font-size: 16px
//background: $disabled-color
// -- LABEL
.span
span
cursor: pointer
position: absolute
margin: 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ $radiobutton-label-font-size: 16px
height: $radiobutton-button-size

// -- INPUT
.input
input
+appear(none)
cursor: pointer
display: inline-block
Expand Down Expand Up @@ -93,7 +93,7 @@ $radiobutton-label-font-size: 16px
background-attachment: fixed

// -- LABEL
.span
span
cursor: pointer
position: absolute
margin: 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
.jewel.slider

.slider
input
-webkit-appearance: none
width: 100%
height: 15px
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ $textfield-border-radius: 3px
position: relative
display: inline-flex

.input
input
margin: $textfield-margin
padding: $textfield-padding

Expand Down

0 comments on commit df9808d

Please sign in to comment.