Skip to content

Commit

Permalink
Fix duplicated heading ID in the Button docs
Browse files Browse the repository at this point in the history
If the users click on Link in the menu they were redirected
to the Button Link subsection instead because it has the same
autogenerated ID.

To avoid such problems we should try to keep all headings
and subheading different within all the files. Despite it's better
to find another solution.
  • Loading branch information
Joozty authored and viktor-yakubiv committed Jul 14, 2020
1 parent 275c569 commit 4237759
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/elements/button/button.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<Button variant="text">Text</Button>
```

### Link
### Button as a link

```jsx
<Button variant="contained" href="#" tag="a">Next</Button>
Expand Down

0 comments on commit 4237759

Please sign in to comment.