Making WordPress.org


Ignore:
Timestamp:
10/24/2019 06:54:36 AM (6 years ago)
Author:
dd32
Message:

Plugin Directory: Fix some HTML validation errors.

  • Remove duplicate ID's
  • Don't nest <style> under <a>

See #4730.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/client/components/plugin-icon/index.jsx

    r5024 r9230  
    3434    return (
    3535        <div className="entry-thumbnail">
    36             <div className="plugin-icon" id={ `plugin-icon-${ slug }` } />
     36            <div className="{ `plugin-icon plugin-icon-${ slug }` }" />
    3737            <style type="text/css">
    38                 { `#plugin-icon-${ slug } { background-image: url('${ icon }'); }` }
     38                { `.plugin-icon-${ slug } { background-image: url('${ icon }'); }` }
    3939                { icons[ '2x' ] && icon !== icons.default
    4040                    // eslint-disable-next-line max-len
    41                     ? `@media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (min-resolution: 144dpi) { #plugin-icon-${ slug } { background-image: url('${ icons[ '2x' ] }'); } }`
     41                    ? `@media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (min-resolution: 144dpi) { .plugin-icon-${ slug } { background-image: url('${ icons[ '2x' ] }'); } }`
    4242                    : ''
    4343                }
Note: See TracChangeset for help on using the changeset viewer.