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

Fix more <a> color #91179

Merged
merged 2 commits into from
Nov 25, 2021
Merged

Fix more <a> color #91179

merged 2 commits into from
Nov 25, 2021

Conversation

GuillaumeGomez
Copy link
Member

Fixes #91175.

Another bug I saw is:

Screenshot from 2021-11-24 11-41-27

I fixed it as well.

r? @jsha

@rust-highfive
Copy link
Collaborator

Some changes occurred in HTML/CSS/JS.

cc @GuillaumeGomez

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Nov 24, 2021
goto: file://|DOC_PATH|/test_docs/struct.HeavilyDocumentedStruct.html

// This is needed to ensure that the text color is computed.
show-text: true
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was originally missing, meaning that the colors weren't computed. I'll add a failure in browser-ui-test directly.

assert-css: (".srclink", {"color": "rgba(0, 0, 0, 0)"})
assert-css: ("#toggle-all-docs", {"color": "rgb(0, 0, 0)"})
assert-css: (".fqn .in-band a:nth-of-type(1)", {"color": "rgb(0, 0, 0)"})
assert-css: (".fqn .in-band a:nth-of-type(2)", {"color": "rgb(173, 68, 142)"})
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Therefore this color was updated as well (it's for a struct so not black contrary to the other members of the import).

@rust-log-analyzer

This comment has been minimized.

@jsha
Copy link
Contributor

jsha commented Nov 24, 2021

Thanks for the fix!

@bors r+

@bors
Copy link
Contributor

bors commented Nov 24, 2021

📌 Commit 0ba92fe has been approved by jsha

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Nov 24, 2021
GuillaumeGomez added a commit to GuillaumeGomez/rust that referenced this pull request Nov 24, 2021
Fix more <a> color

Fixes rust-lang#91175.

Another bug I saw is:

![Screenshot from 2021-11-24 11-41-27](https://user-images.githubusercontent.com/3050060/143239845-f173cfeb-8f5c-4215-a5af-b71d4e1bcd84.png)

I fixed it as well.

r? `@jsha`
@jsha
Copy link
Contributor

jsha commented Nov 24, 2021

Per #91196 it looks like we also need a rule for a.anchor to be black / unstyled generally. Do you want to mix that into this PR or should I make a followup?

@camelid
Copy link
Member

camelid commented Nov 24, 2021

This PR is already in a rollup, so a separate PR is probably best.

@GuillaumeGomez
Copy link
Member Author

Also please open an issue so we can keep track of things more easily.

@camelid
Copy link
Member

camelid commented Nov 24, 2021

Also please open an issue so we can keep track of things more easily.

There's already #91196...?

@GuillaumeGomez
Copy link
Member Author

Indeed... Sorry, tired. Please ignore my comment.

GuillaumeGomez added a commit to GuillaumeGomez/rust that referenced this pull request Nov 24, 2021
Fix more <a> color

Fixes rust-lang#91175.

Another bug I saw is:

![Screenshot from 2021-11-24 11-41-27](https://user-images.githubusercontent.com/3050060/143239845-f173cfeb-8f5c-4215-a5af-b71d4e1bcd84.png)

I fixed it as well.

r? `@jsha`
This was referenced Nov 24, 2021
bors added a commit to rust-lang-ci/rust that referenced this pull request Nov 24, 2021
…laumeGomez

Rollup of 7 pull requests

Successful merges:

 - rust-lang#89542 (Partially stabilize `duration_consts_2`)
 - rust-lang#90044 (Restrict aarch64 outline atomics to glibc for now.)
 - rust-lang#90420 (Create rustdoc_internals feature gate)
 - rust-lang#91075 (Reduce prominence of item-infos)
 - rust-lang#91151 (Fix test in std::process on android)
 - rust-lang#91179 (Fix more <a> color)
 - rust-lang#91199 (rustdoc: Add test for mixing doc comments and attrs)

Failed merges:

r? `@ghost`
`@rustbot` modify labels: rollup
@jsha
Copy link
Contributor

jsha commented Nov 25, 2021

It turns out a.anchor is already part of this PR and I forgot! Thanks for spotting that already. :-)

@bors bors merged commit 3bc8fc8 into rust-lang:master Nov 25, 2021
@rustbot rustbot added this to the 1.58.0 milestone Nov 25, 2021
@camelid
Copy link
Member

camelid commented Nov 25, 2021

It turns out a.anchor is already part of this PR and I forgot! Thanks for spotting that already. :-)

@jsha so should #91196 be closed now?

@GuillaumeGomez GuillaumeGomez deleted the a-color branch November 25, 2021 09:04
matthiaskrgr added a commit to matthiaskrgr/rust that referenced this pull request Nov 25, 2021
…ci, r=jsha

Improve rustdoc-gui CI

As commented [here](rust-lang#91179 (comment)):

When the text isn't displayed, the color returned by puppeteer is always `rgba(0,0,0,0)`, which is definitely not the right value. To prevent this error from happening again, `browser-ui-test` will now fail if a CSS color check is run when the text isn't displayed.

Either this PR or rust-lang#91179 is merged first, they'll conflict because I made changes to the same test file.

cc `@jyn514`
r? `@jsha`
matthiaskrgr added a commit to matthiaskrgr/rust that referenced this pull request Nov 25, 2021
…ci, r=jsha

Improve rustdoc-gui CI

As commented [here](rust-lang#91179 (comment)):

When the text isn't displayed, the color returned by puppeteer is always `rgba(0,0,0,0)`, which is definitely not the right value. To prevent this error from happening again, `browser-ui-test` will now fail if a CSS color check is run when the text isn't displayed.

Either this PR or rust-lang#91179 is merged first, they'll conflict because I made changes to the same test file.

cc ``@jyn514``
r? ``@jsha``
matthiaskrgr added a commit to matthiaskrgr/rust that referenced this pull request Nov 25, 2021
…ci, r=jsha

Improve rustdoc-gui CI

As commented [here](rust-lang#91179 (comment)):

When the text isn't displayed, the color returned by puppeteer is always `rgba(0,0,0,0)`, which is definitely not the right value. To prevent this error from happening again, `browser-ui-test` will now fail if a CSS color check is run when the text isn't displayed.

Either this PR or rust-lang#91179 is merged first, they'll conflict because I made changes to the same test file.

cc ```@jyn514```
r? ```@jsha```
bors added a commit to rust-lang-ci/rust that referenced this pull request Nov 26, 2021
…, r=jsha

Improve rustdoc-gui CI

As commented [here](rust-lang#91179 (comment)):

When the text isn't displayed, the color returned by puppeteer is always `rgba(0,0,0,0)`, which is definitely not the right value. To prevent this error from happening again, `browser-ui-test` will now fail if a CSS color check is run when the text isn't displayed.

Either this PR or rust-lang#91179 is merged first, they'll conflict because I made changes to the same test file.

cc `@jyn514`
r? `@jsha`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Invalid color used for titles' anchor
7 participants