mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-11 13:22:39 +00:00
Add a title to each button
add a role to the toolbr.
This commit is contained in:
@@ -94,7 +94,7 @@ const ToolBar = ({ onZoomChange, currentPage, onPageChange, totalPages, onStyleC
|
|||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className={`toolBar ${toolsVisible ? 'visible' : 'hidden'}`}>
|
<div className={`toolBar ${toolsVisible ? 'visible' : 'hidden'}`} role='toolbar'>
|
||||||
<button className='toggleButton' title={`${toolsVisible ? 'Hide' : 'Show'} Preview Toolbar`} onClick={()=>{setToolsVisible(!toolsVisible);}}><i className='fas fa-glasses' /></button>
|
<button className='toggleButton' title={`${toolsVisible ? 'Hide' : 'Show'} Preview Toolbar`} onClick={()=>{setToolsVisible(!toolsVisible);}}><i className='fas fa-glasses' /></button>
|
||||||
{/*v=====----------------------< Zoom Controls >---------------------=====v*/}
|
{/*v=====----------------------< Zoom Controls >---------------------=====v*/}
|
||||||
<div className='group'>
|
<div className='group'>
|
||||||
@@ -152,16 +152,19 @@ const ToolBar = ({ onZoomChange, currentPage, onPageChange, totalPages, onStyleC
|
|||||||
<button role='radio'
|
<button role='radio'
|
||||||
id='single-view'
|
id='single-view'
|
||||||
className={`tool${arrangement === 'single' && ' active'}`}
|
className={`tool${arrangement === 'single' && ' active'}`}
|
||||||
|
title='Single Page'
|
||||||
onClick={()=>setBookMode('single')}
|
onClick={()=>setBookMode('single')}
|
||||||
><i className='fac single-view-alt' /></button>
|
><i className='fac single-view-alt' /></button>
|
||||||
<button role='radio'
|
<button role='radio'
|
||||||
id='facing-view'
|
id='facing-view'
|
||||||
className={`tool${arrangement === 'facing' && ' active'}`}
|
className={`tool${arrangement === 'facing' && ' active'}`}
|
||||||
|
title='Facing Pages'
|
||||||
onClick={()=>setBookMode('facing')}
|
onClick={()=>setBookMode('facing')}
|
||||||
><i className='fac facing-view-alt' /></button>
|
><i className='fac facing-view-alt' /></button>
|
||||||
<button role='radio'
|
<button role='radio'
|
||||||
id='flow-view'
|
id='flow-view'
|
||||||
className={`tool${arrangement === 'flow' && ' active'}`}
|
className={`tool${arrangement === 'flow' && ' active'}`}
|
||||||
|
title='Flow Pages'
|
||||||
onClick={()=>setBookMode('flow')}
|
onClick={()=>setBookMode('flow')}
|
||||||
><i className='fac flow-view-alt' /></button>
|
><i className='fac flow-view-alt' /></button>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user