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

Selective Dropkick'ing #7

Closed
timkeller opened this issue Jul 7, 2011 · 6 comments
Closed

Selective Dropkick'ing #7

timkeller opened this issue Jul 7, 2011 · 6 comments

Comments

@timkeller
Copy link

Is there a way to selectively apply Dropkick to elements?

Right now, it seems like 's that aren't explicitly dropkicked are hidden.

@bdukes
Copy link
Contributor

bdukes commented Aug 23, 2011

I think you'll probably just want to remove (or make more specific) the last CSS rule in dropkick.css:

.dk_fouc select {
  position: relative;
  top: -99999em;
  visibility: hidden;
}

@owenallenaz
Copy link

I have a fork which fixes this problem specifically. https://github.com/owenallenaz/DropKick. Rather than hiding all selects, it makes it so that it only hides the elements which have .dk_fouc applied, forcing developers to be specific about which selects they want to prevent the flash of unstyled content on (FOUC).

@timkeller
Copy link
Author

Awesome.

@mhuggins
Copy link

+1, I only want to apply DropKick to one <select> tag in my site, but it ends up hiding all <select> elements, regardless of whether DropKick is being applied.

@schnittchen
Copy link

+1

@natewilliford
Copy link

Yeah, I'm not a fan of this functionality. I'd really rather not have a jquery plugin adding a class to my html element. You can fix by removing css like bdukes said or by commenting out the line that adds the "ok_fouc" class to the html tag (line 19).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants