Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

flicker problem in iphone6 plus #186

Closed
3Spiders opened this issue Jun 14, 2017 · 14 comments
Closed

flicker problem in iphone6 plus #186

3Spiders opened this issue Jun 14, 2017 · 14 comments
Labels

Comments

@3Spiders
Copy link

when i switched the tabs,the tabs background have a flicker in the whole tab area,the background is #333,the opacity is about 0.3.is iphone6 plus‘s trouble?

@danez
Copy link
Collaborator

danez commented Jun 16, 2017

Can you post an example to look at? Without anything to look at I cannot answer.

@3Spiders
Copy link
Author

its no flash in andorid,iphone had.i cant shot screen,its so fast,i will try change your code or use other tab

@3Spiders
Copy link
Author

you can try in iphone6 or iphone6plus,i guess this problem also in iphone 6s.

@3Spiders
Copy link
Author

i guess the focus operation have an influence on tab

@3Spiders
Copy link
Author

http://dev.miguai.top:19552/#/find/list visit this url

@danez
Copy link
Collaborator

danez commented Jun 22, 2017

I don't have an iphone, so I cannot test. If you can figure out what is the problem, feel free to create a PR.

@3Spiders
Copy link
Author

thank you,if i have any question,i will quiz

@brunosantanarj
Copy link

i am having the same problem, some solution ?

@JarrydTrokis
Copy link

JarrydTrokis commented Feb 6, 2018

The fix is a simple CSS change:

Add the following line to the react tabs class
-webkit-tap-highlight-color: transparent;

@refanbanzhang
Copy link

@JarrydTrokis thank you very much!

@danez danez closed this as completed in 0643a04 Jun 16, 2018
danez added a commit that referenced this issue Jun 16, 2018
@ghost
Copy link

ghost commented Aug 16, 2018

Any idea when this will be released?

@ghost
Copy link

ghost commented Aug 16, 2018

Actually, commit 5d608aa didn't fix this for me after I applied it manually by editing node_modules/react-tabs/style/react-tabs.css. I know that my manual edits got applied because I tried adding background-color: aqua to one of the selectors and I saw the change after re-starting my create-react-app dev server.

What finally did work for me was to add the following CSS to my local assets/css/styles.css:
(from stackoverflow)

* {
  -webkit-tap-highlight-color: transparent;
}

My main index.js file now looks like this:

import React from 'react';
import ReactDOM from 'react-dom';

import './assets/css/styles.css';
import 'react-tabs/style/react-tabs.css';

import App from './App';

ReactDOM.render(<App />, document.getElementById('root'));

@ghost
Copy link

ghost commented Aug 16, 2018

I'm on iPhone 6s with iOS 11.4 using Safari.

@danez danez reopened this Aug 30, 2018
@danez danez added bug and removed need feedback labels Aug 30, 2018
@danez
Copy link
Collaborator

danez commented Aug 30, 2018

Fix now for real in 25cfa16

@danez danez closed this as completed Aug 30, 2018
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

5 participants