Please review a change to improve the target highlight for javadoc member 
details sections.

Instead of highlighting the member header by changing its background color, we 
now add a subtle accent bar to the left side of the header. The bar is 
implemented as `box-shadow`, is just outside the header element and does not 
cause a layout shift. It uses the theme's link color with an alpha of 70%, 
which seems to work well in both themes. 

The accent bar is wide enough to be noticeable, but nowhere near as distractive 
as the old highlight, and brings our documentation more in line with modern 
documentation/UI patterns.

Sample docs for the `java.lang` package are [available 
here](https://cr.openjdk.org/~hannesw/8383906/api.00/java.base/java/lang/Object.html#hashCode()).

---------
- [x] I confirm that I make this contribution in accordance with the [OpenJDK 
Interim AI Policy](https://openjdk.org/legal/ai).

-------------

Commit messages:
 - 8383906: Target highlight in member details is too aggressive

Changes: https://git.openjdk.org/jdk/pull/31052/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=31052&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8383906
  Stats: 6 lines in 1 file changed: 0 ins; 5 del; 1 mod
  Patch: https://git.openjdk.org/jdk/pull/31052.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/31052/head:pull/31052

PR: https://git.openjdk.org/jdk/pull/31052

Reply via email to