-
Notifications
You must be signed in to change notification settings - Fork 5.8k
8260314: Replace border="1" on tables with CSS #2210
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
Conversation
👋 Welcome back aivanov! A progress list of the required criteria for merging this PR into |
@aivanov-jdk The following labels will be automatically applied to this pull request:
When this pull request is ready to be reviewed, an "RFR" email will be sent to the corresponding mailing lists. If you would like to change these labels, use the /label pull request command. |
Webrevs
|
@jonathan-gibbons, what do you think? |
Probably we can import the CSS used by the javadoc itself? |
We do. For example, AWT Modality in JDK 15 has borders because of However, I looked into it further: there are tables in Javadoc comments. One example is AWTKeyStroke constructor which uses There's also The stylesheet also declares For the consistent look and feel of documentation, I think |
I updated all the tables with I've also uploaded the files with different styles for visual comparison: Current: JDK 15
Manual: as suggested initially
Striped:
|
In general, I recommend where possible using the styles provided in the standard stylesheet, for overall visual consistency. FYI, although it seems like the standard styles work for you in this case, if you should ever need it, javadoc now supports package-specific and module-specific stylesheets. Just put |
I totally agree. I overlooked the standard styles for the tables. Thanks to @mrserb for pointing me in the right direction. Since most tables in java.desktop use striped tables, it makes sense to use this style in these files too. Although I had said I preferred The table in
Thank you. It's good to know as it allows for keeping consistent look across files as opposed to applying style changes in individual files. |
@aivanov-jdk This change now passes all automated pre-integration checks. ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details. After integration, the commit message for the final commit will be:
You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed. At the time when this comment was updated there had been 37 new commits pushed to the
As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid this automatic rebasing, please check the documentation for the /integrate command for further details. ➡️ To integrate this PR with the above commit message to the |
/integrate |
@aivanov-jdk Since your change was applied there have been 50 commits pushed to the
Your commit was automatically rebased without conflicts. Pushed as commit 7ed591c. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
Replace presentational attribute
border="1"
on<table>
element with CSS styles:These declarations produce the same rendering as the default one in Firefox and Edge.
Another option is to use
solid
in both cases.Progress
Issue
Reviewers
Download
$ git fetch https://git.openjdk.java.net/jdk pull/2210/head:pull/2210
$ git checkout pull/2210