Skip to content

Commit

Permalink
Simplified link to filters in style spec
Browse files Browse the repository at this point in the history
  • Loading branch information
1ec5 authored and jfirebaugh committed Mar 27, 2018
1 parent 84babbf commit a37ac49
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/pages/style-spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ const navigation = [
"title": "Function"
},
{
"title": "Filter (deprecated syntax)"
"title": "Filter"
}
]
}
Expand Down Expand Up @@ -449,7 +449,7 @@ export default class extends React.Component {
<a className='block truncate strong quiet' href={`#${slug(title)}`}>{title}</a>
{subnav && subnav.map(({title: subtitle}, i) =>
<a key={i} className='block truncate'
href={`#${slug(title)}-${slug(subtitle.replace(/\s*\(.+\)$/, ''))}`}>{subtitle}</a>
href={`#${slug(title)}-${slug(subtitle)}`}>{subtitle}</a>
)}
</div>
)}
Expand Down

0 comments on commit a37ac49

Please sign in to comment.