-
Notifications
You must be signed in to change notification settings - Fork 656
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
docs searchbox icon recoloring issues. #1165
Comments
@silverwind can correct me on this, but it's my understanding I'm pretty sure the intent of this is to create a color palette and let the mapper handle swapping them everywhere instead of just the manual mappings we used to have. |
This comment has been minimized.
This comment has been minimized.
If you look through https://docs.github.com/stylesheets/index.css there's duplicate rules in their file (can see it in dev tools too). Could that be part of the issue here? An example of this is: Line 1068 .form-control,.ais-SearchBox-input,.form-select {
min-height: 34px;
padding: 6px 8px;
font-size: 16px;
line-height: 20px;
color: #24292e;
vertical-align: middle;
background-color: #fff;
background-repeat: no-repeat;
background-position: right 8px center;
border: 1px solid #d1d5da;
border-radius: 3px;
outline: none;
box-shadow: inset 0 1px 2px rgba(27,31,35,.075)
}
.form-control.focus,.focus.ais-SearchBox-input,.form-control:focus,.ais-SearchBox-input:focus,.form-select.focus,.form-select:focus {
border-color: #2188ff;
outline: none;
box-shadow: inset 0 1px 2px rgba(27,31,35,.075),0 0 0 .2em rgba(3,102,214,.3)
}
@media(min-width: 768px) {
.form-control,.ais-SearchBox-input,.form-select {
font-size:14px
}
} Line 9754 .form-control,.ais-SearchBox-input,.form-select {
min-height: 34px;
padding: 6px 8px;
font-size: 16px;
line-height: 20px;
color: #24292e;
vertical-align: middle;
background-color: #fff;
background-repeat: no-repeat;
background-position: right 8px center;
border: 1px solid #d1d5da;
border-radius: 3px;
outline: none;
box-shadow: inset 0 1px 2px rgba(27,31,35,.075)
}
.form-control.focus,.focus.ais-SearchBox-input,.form-control:focus,.ais-SearchBox-input:focus,.form-select.focus,.form-select:focus {
border-color: #2188ff;
outline: none;
box-shadow: inset 0 1px 2px rgba(27,31,35,.075),0 0 0 .2em rgba(3,102,214,.3)
}
@media(min-width: 768px) {
.form-control,.ais-SearchBox-input,.form-select {
font-size:14px
}
} Until generated styles get put in their own document sections there's always going to be issues, especially now that github.com is using a much different primer version than the other sites. They're doing a major overhaul on all this so they can add in themes (light, dark, high contrast) so at some point the other sites should get updated to the newer primer version but I'm sure they're focusing on just one site for now. |
They dont have conflicting values, the duplication shouldn't affect this. If it does I dont see how, On the other hand on our part the specificity of these is being manipulated for one, not to mention the properties duplication and the rest. in any case, the same goes on and on in out generated stuffs everywhere, not just here. |
I'm sure once the generator adds document sections a lot of these issues will go away. We won't need the selector hacks and we won't have rules stepping on one another from the various sites. |
In meanwhile Im no closer to solving this issue when were going off on this tangent. |
Ive removed the duplicates from the default stylesheet and its unrelated to this issue. Also the issue is unrelated to sections or rules steeping over each other. I dont think pasting those generated rules actually helped, please only refer to #1165 (comment) THAT is the issue.. |
Background generator is now smarter and only emits color in this case: body.d-lg-flex .ais-SearchBox-input, body.d-lg-flex .form-control,
body.d-lg-flex .form-select {
color: #cdcdcd;
background-color: #181818;
border-color: #404040;
} If the |
Also, separate generator sections is on my todo list. |
Does anyone have anything to add that may help fix this? using the below
instead of recoloring icon it removes it. can someone check that is correct? |
Fixed in own style, no interest in this anymore. |
RE: discussion on a5ba294#commitcomment-40299609
link to svg https://docs.github.com/assets/images/octicons/search.svg
Im using
Applying this actually removes icon fully why IDK.
GENERATOR ISSUES
Again,
$color
problems WHY are we generating thisGitHub-Dark/github-dark.css
Lines 10119 to 10121 in 161d652
@silverwind
The text was updated successfully, but these errors were encountered: