Since edit sections are usually placed on a page multiple times it is not standards compliant to use Ids in the HTML, I would like to request these be changed to Classes, and maybe a unique Id be added, so for example instead of:

<span id="edit-section">...</span>

It would be

<span class="edit-section" id="edit-section-1">...</span>

Adding the unique Ids as well as Classes may help some themers when building a theme and want to alter a specific section's styling.

Thank you
Aaron

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

AaronMcHale’s picture

Status: Active » Needs review
FileSize
1.12 KB

Patch of my changes, also added a title attribute to the edit link for accessibility, if anyone knows how to get a variable of the section title, that would be appreciated as that's what I was going for, but unfortunately don't have enough time to read through the code trying to find a way to get it.

  • pifagor committed dd0f7c3 on 7.x-1.x
    Issue #2282459 by WillowDigit: Make edit section compatible with...
pifagor’s picture

Status: Needs review » Fixed

Done

pifagor’s picture

Status: Fixed » Closed (fixed)