Skip to content

Commit 2e23605

Browse files
committed
Update inline display
1 parent bc39a88 commit 2e23605

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/select/select.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { Component, Input } from "@angular/core";
55
template: `
66
<div class="bx--form-item">
77
<div
8-
[ngClass]="{ 'bx--select--inline': inline }"
8+
[ngClass]="{ 'bx--select--inline': display === 'inline' }"
99
class="bx--select">
1010
<label [attr.for]="id" class="bx--label">{{label}}</label>
1111
<select [attr.id]="id" class="bx--select-input">
@@ -20,7 +20,7 @@ import { Component, Input } from "@angular/core";
2020
})
2121
export class Select {
2222
static selectCount = 0;
23-
@Input() inline = false;
23+
@Input() display: "inline" | "default" = "default";
2424
@Input() label = "Select label";
2525
@Input() id = `select-${Select.selectCount++}`;
2626
}

src/select/select.stories.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ storiesOf("Select", module).addDecorator(
2828
}))
2929
.add("Inline", () => ({
3030
template: `
31-
<ibm-select [inline]="true">
31+
<ibm-select display="inline">
3232
<option value="" disabled selected hidden>Choose an option</option>
3333
<option value="solong">A much longer option that is worth having around to check how text flows</option>
3434
<optgroup label="Category 1">

0 commit comments

Comments
 (0)