Skip to content
Snippets Groups Projects
Commit cb8a3628 authored by vgm18's avatar vgm18
Browse files

Fixed contrast in the first access

parent b6d15c90
No related branches found
No related tags found
3 merge requests!100Changed recaptcha key to the production one, removed console.logs and fixed...,!99Changed recaptcha key to the production one, removed console.logs and fixed...,!98Changed recaptcha key to the production one, removed console.logs and fixed...
...@@ -33,6 +33,7 @@ along with Plataforma Integrada MEC. If not, see <http://www.gnu.org/licenses/> ...@@ -33,6 +33,7 @@ along with Plataforma Integrada MEC. If not, see <http://www.gnu.org/licenses/>
background-color: white; background-color: white;
width: 100%; width: 100%;
height: 18px; height: 18px;
border-bottom: 1px solid #666;
} }
.Contrastbar{ .Contrastbar{
...@@ -54,6 +55,17 @@ along with Plataforma Integrada MEC. If not, see <http://www.gnu.org/licenses/> ...@@ -54,6 +55,17 @@ along with Plataforma Integrada MEC. If not, see <http://www.gnu.org/licenses/>
vertical-align: middle; vertical-align: middle;
} }
.text{
color: #666;
cursor: pointer;
width: 140px;
font-size: 13px;
padding-left: 10px;
padding-right: 10px;
text-align: center;
vertical-align: middle;
}
.textRight { .textRight {
float:right; float:right;
height:100%; height:100%;
......
...@@ -16,7 +16,7 @@ GNU Affero General Public License for more details. ...@@ -16,7 +16,7 @@ GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License You should have received a copy of the GNU Affero General Public License
along with Plataforma Integrada MEC. If not, see <http://www.gnu.org/licenses/>.*/ along with Plataforma Integrada MEC. If not, see <http://www.gnu.org/licenses/>.*/
import React from 'react'; import React, { useEffect } from 'react';
import './ContrastBar.css'; import './ContrastBar.css';
import ContrastImageOn from '../../img/OnContrastIcon.png'; import ContrastImageOn from '../../img/OnContrastIcon.png';
import ContrastImageOff from '../../img/OffContrastIcon.png'; import ContrastImageOff from '../../img/OffContrastIcon.png';
...@@ -31,6 +31,10 @@ function ContrastBar() { ...@@ -31,6 +31,10 @@ function ContrastBar() {
// Hook to set contrast context // Hook to set contrast context
const { state, dispatch } = React.useContext(Store); const { state, dispatch } = React.useContext(Store);
useEffect(() => {
setContrastAction('');
}, []);
const setContrastAction = (newContrast) => { const setContrastAction = (newContrast) => {
localStorage.setItem('@portalmec/contrast', newContrast) localStorage.setItem('@portalmec/contrast', newContrast)
return dispatch({ return dispatch({
...@@ -98,7 +102,6 @@ function ContrastBar() { ...@@ -98,7 +102,6 @@ function ContrastBar() {
Contraste Contraste
</a> </a>
</div> </div>
</div> </div>
</div> </div>
</React.Fragment> </React.Fragment>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment