Opened 9 years ago
Last modified 9 years ago
#12262 new defect
CSS rules for wiki controls can conflict with wiki content
Reported by: | anonymous | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | wiki system | Version: | 1.0.9 |
Severity: | normal | Keywords: | css |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
How to reproduce:
- Edit any wiki page
- Add two headings to the page, one called 'save', the other 'Save'
= save = Save
- Preview the page
- Notice how the 'save' heading is indented, while 'Save' is not.
wiki.css has the rule
#delete, #rename, #save { margin-left: 3em }
to indent the 'Submit Changes' input element among others, but headings are given the ID of their content, so there's a conflict here with the 'save' heading, and a number of other possible heading titles.
This could be fixed by adding a element selector to the wiki CSS rules
input#save
or using a new class for wiki controls and divs and adding it to the CSS rules, or renaming the ID of the controls, or any number of other ways.