Skip to content

Commit

Permalink
fix(readme): fixed two readmes (#387)
Browse files Browse the repository at this point in the history
  • Loading branch information
marijohannessen authored Oct 26, 2017
1 parent 2d3a2cf commit 2687daf
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
5 changes: 1 addition & 4 deletions src/components/content-switcher/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,15 +102,13 @@ Use `setActive` class method to preset the selection on a Content Switcher; doin
```js
// Get HTMLelement for button to preselect it with setActive
const button = document.querySelector('[data-target=".demo--panel--opt-2"]');

// Initialize an instance of ContentSwitcher with init(), create() or new ContentSwitcher(element)
const instance = ContentSwitcher.init();

// Use setActive
instance.setActive(button);
```

The `setActive` method also takes an optional `callback` function parameter. The most typical example of using this is acting on a newly selected content-switcher button.
The `setActive` method also takes an optional `callback` function parameter. The most typical example of using this is acting on a newly selected content-switcher button.
```js
contentSwitcher.setActive(button, function (error, item) {
if (!error) {
Expand All @@ -131,7 +129,6 @@ Both uses of HTML will render the same visual styles and interactions.
<a href="javascript:void(0)" class="bx--content-switcher-btn" data-target=".demo--panel--opt-2">Option 2</a>
<a href="javascript:void(0)" class="bx--content-switcher-btn" data-target=".demo--panel--opt-3">Option 3</a>
</div>

<div data-content-switcher class="bx--content-switcher">
<button class="bx--content-switcher-btn bx--content-switcher--selected" data-target=".demo--panel--opt-1">Option 1</button>
<button class="bx--content-switcher-btn" data-target=".demo--panel--opt-2">Option 2</button>
Expand Down
2 changes: 0 additions & 2 deletions src/components/file-uploader/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ It's up to the developer and their design team to specify and implement validati

**Complete** injects checkmark icons into each filename state container.

>
![complete](https://cloud.githubusercontent.com/assets/4185382/24562373/2f901fbc-1610-11e7-97f4-153f16bcbcfc.pngtrun)

```scss
Expand All @@ -69,7 +68,6 @@ It's up to the developer and their design team to specify and implement validati
height: 2rem;
margin-right: -7px;
}

.bx--loading__svg {
stroke: $ui-05;
}
Expand Down

0 comments on commit 2687daf

Please sign in to comment.