Don't abuse the title attribute

This commit is contained in:
Tom MacWright
2016-03-03 13:29:47 -08:00
parent bd1d4b2b25
commit e90ffea98b
2 changed files with 2 additions and 2 deletions

View File

@ -79,7 +79,7 @@ var App = React.createClass({
var rect = sections[i].getBoundingClientRect();
if (rect.bottom > 0) {
this.setState({
activeSection: sections[i].title
activeSection: sections[i].getAttribute('data-title')
});
return;
}

View File

@ -27,7 +27,7 @@ var Section = React.createClass({
let { chunk } = this.props;
let { left, right, preview } = chunk;
return (<div
title={chunk.title}
data-title={chunk.title}
className={`section pad2y contain clearfix ${preview ? 'preview' : ''}`}>
<div
className='col6 pad2x prose clip'