Skip to content

Commit

Permalink
fix(radio): example and box-sizing
Browse files Browse the repository at this point in the history
  • Loading branch information
pimenovoleg committed Nov 21, 2018
1 parent 5d82306 commit 97e3a31
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 4 additions & 0 deletions src/lib-dev/radio/styles.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
//@import '../../lib/core/theming/prebuilt/default-theme';
@import '../../lib/core/theming/prebuilt/dark-theme';
@import '../../lib/core/visual/prebuilt/default-visual';

body {
margin: 18px;
}

.example-radio-group {
display: inline-flex;
Expand Down
11 changes: 3 additions & 8 deletions src/lib-dev/radio/template.html
Original file line number Diff line number Diff line change
@@ -1,19 +1,16 @@

<!--<theme-picker></theme-picker>-->
<br/><br/>

<mc-radio-group class="example-radio-group" [(ngModel)]="favoriteFruit">
<mc-radio-button class="example-radio-button" *ngFor="let season of fruits" [value]="season">
{{season}}
</mc-radio-button>
</mc-radio-group>

<br/>
<div class="example-selected-value">Your favorite fruit is: {{favoriteFruit}}</div>

<br/>
<b>Disabled buttons:</b>
<br/><br/>
<p class="mc-headline">Disabled buttons</p>

<mc-radio-group
class="example-radio-group"
name="my_options"
Expand All @@ -23,9 +20,7 @@
<mc-radio-button class="example-radio-button" value="option_3">Option 3</mc-radio-button>
</mc-radio-group>

<br/><br/>
<b>Disabled selected buttons:</b>
<br/><br/>
<p class="mc-headline">Disabled selected buttons</p>
<mc-radio-group class="example-radio-group">
<mc-radio-button
class="example-radio-button"
Expand Down
1 change: 1 addition & 0 deletions src/lib/radio/radio.scss
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ $mc-toggle-padding: 26px !default;

.mc-radio-button__outer-circle,
.mc-radio-button__inner-circle {
box-sizing: content-box;
position: absolute;

content: '';
Expand Down

0 comments on commit 97e3a31

Please sign in to comment.