Skip to content

Commit c9194e3

Browse files
committed
Prefix md-vertical class with component name
1 parent 4974d0b commit c9194e3

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

src/lib/button-toggle/button-toggle.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ md-button-toggle-group {
1717
white-space: nowrap;
1818
}
1919

20-
md-button-toggle-group.md-vertical {
20+
.md-button-toggle-vertical {
2121
flex-direction: column;
2222

2323
.md-button-toggle-label-content {

src/lib/button-toggle/button-toggle.spec.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -127,12 +127,12 @@ describe('MdButtonToggle', () => {
127127
});
128128

129129
it('should change the vertical state', () => {
130-
expect(groupNativeElement.classList).not.toContain('md-vertical');
130+
expect(groupNativeElement.classList).not.toContain('md-button-toggle-vertical');
131131

132132
groupInstance.vertical = true;
133133
fixture.detectChanges();
134134

135-
expect(groupNativeElement.classList).toContain('md-vertical');
135+
expect(groupNativeElement.classList).toContain('md-button-toggle-vertical');
136136
});
137137

138138
it('should emit a change event from button toggles', fakeAsync(() => {
@@ -422,12 +422,12 @@ describe('MdButtonToggle', () => {
422422
});
423423

424424
it('should change the vertical state', () => {
425-
expect(groupNativeElement.classList).not.toContain('md-vertical');
425+
expect(groupNativeElement.classList).not.toContain('md-button-toggle-vertical');
426426

427427
groupInstance.vertical = true;
428428
fixture.detectChanges();
429429

430-
expect(groupNativeElement.classList).toContain('md-vertical');
430+
expect(groupNativeElement.classList).toContain('md-button-toggle-vertical');
431431
});
432432

433433
it('should deselect a button toggle when selected twice', () => {

src/lib/button-toggle/button-toggle.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export class MdButtonToggleChange {
4747
providers: [MD_BUTTON_TOGGLE_GROUP_VALUE_ACCESSOR],
4848
host: {
4949
'role': 'radiogroup',
50-
'[class.md-vertical]': 'vertical'
50+
'[class.md-button-toggle-vertical]': 'vertical'
5151
},
5252
exportAs: 'mdButtonToggleGroup',
5353
})
@@ -221,7 +221,7 @@ export class MdButtonToggleGroup implements AfterViewInit, ControlValueAccessor
221221
selector: 'md-button-toggle-group[multiple]',
222222
exportAs: 'mdButtonToggleGroup',
223223
host: {
224-
'[class.md-vertical]': 'vertical'
224+
'[class.md-button-toggle-vertical]': 'vertical'
225225
}
226226
})
227227
export class MdButtonToggleGroupMultiple {

0 commit comments

Comments
 (0)