Skip to content

Commit 2b5b0c3

Browse files
committed
Add focus for table of contents jump links
1 parent 51923da commit 2b5b0c3

12 files changed

+33
-117
lines changed

demo/pages/HomePage/ButtonGroupSection.jsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,10 @@ module.exports = React.createClass( {
3737
return (
3838

3939
<div className='slds-p-around--medium'>
40-
<h3 id='buttonGroupSection' className='slds-text-heading--medium slds-truncate'>
41-
Button Group
40+
<h3 className='slds-text-heading--medium slds-truncate'>
41+
<a href="javascript:void(0)" id='buttonGroupSection'>
42+
Button Group
43+
</a>
4244
</h3>
4345

4446
<PrismCode className='language-markup'>

demo/pages/HomePage/ButtonSection.jsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,10 @@ module.exports = React.createClass( {
4545
return (
4646

4747
<div className="slds-p-around--medium">
48-
<h3 id="buttonSection" className="slds-text-heading--medium slds-truncate">
48+
<h3 className="slds-text-heading--medium slds-truncate">
49+
<a href="javascript:void(0)" id="buttonSection">
4950
Button
51+
</a>
5052
</h3>
5153

5254
<PrismCode className="language-markup">

demo/pages/HomePage/ButtonSectionREADME.jsx

Lines changed: 0 additions & 103 deletions
This file was deleted.

demo/pages/HomePage/DatePickerSingleSelectSection.jsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,10 @@ module.exports = React.createClass( {
3737

3838
<div className="slds-p-around--medium">
3939

40-
<h3 id='datepickerSection' className="slds-text-heading--medium slds-truncate">
40+
<h3 className="slds-text-heading--medium slds-truncate">
41+
<a href="javascript:void(0)" id='datepickerSection'>
4142
Datepickers (Work in progress)
43+
</a>
4244
</h3>
4345

4446
<PrismCode className='language-markup'>

demo/pages/HomePage/DropdownBaseSection.jsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,10 @@ module.exports = React.createClass( {
4343

4444

4545
<div className="slds-p-around--medium">
46-
<h3 id='dropdownSection' className="slds-text-heading--medium slds-truncate">
46+
<h3 className="slds-text-heading--medium slds-truncate">
47+
<a href="javascript:void(0)" id='dropdownSection'>
4748
Dropdown Base
49+
</a>
4850
</h3>
4951

5052
<PrismCode className='language-markup'>

demo/pages/HomePage/IconSection.jsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,10 @@ module.exports = React.createClass( {
3939
return (
4040

4141
<div className='slds-p-around--medium'>
42-
<h3 id='iconSection' className='slds-text-heading--medium slds-truncate'>
42+
<h3 className='slds-text-heading--medium slds-truncate'>
43+
<a href="javascript:void(0)" id='iconSection'>
4344
Icon
45+
</a>
4446
</h3>
4547
<PrismCode className='language-markup'>
4648
{require('raw-loader!../../code-snippets/SLDSIcon.txt')}

demo/pages/HomePage/LookupBaseSection.jsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,10 @@ module.exports = React.createClass( {
6161

6262
<div className="slds-p-around--medium">
6363

64-
<h3 id='lookupSection' className="slds-text-heading--medium slds-truncate">
64+
<h3 className="slds-text-heading--medium slds-truncate">
65+
<a href="javascript:void(0)" id='lookupSection'>
6566
Lookups
67+
</a>
6668
</h3>
6769

6870
<PrismCode className='language-markup'>

demo/pages/HomePage/ModalSection.jsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,10 @@ module.exports = React.createClass( {
138138
return (
139139
<div className='slds-p-around--medium'>
140140

141-
<h3 id='modalSection' className='slds-text-heading--medium slds-truncate'>
142-
Modal
141+
<h3 className='slds-text-heading--medium slds-truncate'>
142+
<a href="javascript:void(0)" id='modalSection'>
143+
Modal
144+
</a>
143145
</h3>
144146
<PrismCode className='language-markup'>
145147
{require("raw-loader!../../code-snippets/SLDSModal.txt")}

demo/pages/HomePage/NotificationSection.jsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,10 @@ module.exports = React.createClass( {
8484
return (
8585

8686
<div className='slds-p-around--medium'>
87-
<h3 id='notificationSection' className='slds-text-heading--medium slds-truncate'>
87+
<h3 className='slds-text-heading--medium slds-truncate'>
88+
<a href="javascript:void(0)" id='notificationSection'>
8889
Notification
90+
</a>
8991
</h3>
9092
<h4>
9193
* All notifications are fixed and centered at the top of the screen.

demo/pages/HomePage/PicklistBaseSection.jsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,10 @@ module.exports = React.createClass( {
4646

4747
<div className="slds-p-around--medium">
4848

49-
<h3 id='picklistSection' className="slds-text-heading--medium slds-truncate">
49+
<h3 className="slds-text-heading--medium slds-truncate">
50+
<a href="javascript:void(0)" id='picklistSection'>
5051
Picklist Base
52+
</a>
5153
</h3>
5254

5355
<PrismCode className='language-markup'>

0 commit comments

Comments
 (0)