Closed
Bug 500853
Opened 16 years ago
Closed 15 years ago
"a" classes in Bugzilla CSS cause non-href anchors to style like links
Categories
(Bugzilla :: User Interface, defect)
Tracking
()
RESOLVED
FIXED
Bugzilla 4.0
People
(Reporter: bbaetz, Assigned: GPHemsley)
References
Details
(Whiteboard: [fixed by blocker])
Attachments
(1 file, 1 obsolete file)
2.68 KB,
patch
|
mkanat
:
review-
|
Details | Diff | Splinter Review |
terms.bug => terms.abug, and one missing </a> tag
Applies to 3.4 too
Reporter | ||
Comment 1•16 years ago
|
||
Attachment #385523 -
Flags: review?(LpSolit)
Comment 2•16 years ago
|
||
Comment on attachment 385523 [details] [diff] [review]
patch
>Index: template/en/default/pages/fields.html.tmpl
>-<h2><a name="importance">Importance</h2>
>+<h2><a name="importance">Importance</a></h2>
Because of the way our CSS is, "Importance" will get highlighted as a link there. (We need to have an a[name] rule that avoids that, but that's another issue.) It'd probably be better to do "<a></a>Importance" instead.
Attachment #385523 -
Flags: review?(LpSolit) → review-
Reporter | ||
Comment 3•16 years ago
|
||
(In reply to comment #2)
> (From update of attachment 385523 [details] [diff] [review])
> >Index: template/en/default/pages/fields.html.tmpl
> >-<h2><a name="importance">Importance</h2>
> >+<h2><a name="importance">Importance</a></h2>
>
> Because of the way our CSS is, "Importance" will get highlighted as a link
> there. (We need to have an a[name] rule that avoids that, but that's another
> issue.) It'd probably be better to do "<a></a>Importance" instead.
True, but all the others are like that....
![]() |
||
Updated•16 years ago
|
Attachment #385523 -
Flags: review+
![]() |
||
Comment 4•16 years ago
|
||
Comment on attachment 385523 [details] [diff] [review]
patch
bbaetz is correct that all other H2 titles are already affected by this unwanted CSS rule.
>+ <td>The <b>status</b> field indicates the general health of
>+ [% terms.abug %]. Only certain status transitions are allowed.</td>
You should write [%+ terms.abug %] as it's at the beginning of a line.
>+ You can enter a URL to [%+ terms.abug %] in the "Add [% terms.Bug %] URLs"
No need to put "+" here, [% terms.abug %] is in the middle of a line.
Could you update your patch with these two comments fixed + the missing rule about H2 titles?
Reporter | ||
Comment 5•16 years ago
|
||
Fixing the <a name=> rule was a bit of a pain. the :link pseudoclass matches unvisited links, so we use :link:hover and :visited:hover (see https://developer.mozilla.org/en/Issues_Arising_From_Arbitrary-Element_hover)
The change to the Dusk color rule is because that has a higher specificity than :hover by itself, so without adding a:visited:hover to the rules the one in global.css would match. Googling suggests that this won't work in ie4, and ie5 will treat it as a:hover which may not work with some of the other rules. I don't think we care, though.... Anyone got ie6 to test?
Attachment #385523 -
Attachment is obsolete: true
Attachment #385712 -
Flags: review?(LpSolit)
![]() |
||
Comment 6•16 years ago
|
||
We don't care about IE4 and IE5, and I have IE6 and IE8, so I can test.
Reporter | ||
Comment 7•16 years ago
|
||
OK. You need to check (with both skins) that visited and unvisited links are underlined and have the correct colour when hovered over.
This is, btw, likely to break other skins since the standard global.css will now win.
Comment 8•16 years ago
|
||
Comment on attachment 385712 [details] [diff] [review]
v2
No, please don't use a:link. I suspect this doesn't fix everything, based on my experiments with a:link when I fixed a bunch of CSS before.
Instead, just have a rule for a[name] { text-decoration: inherit; color: inherit; background-color: inherit; }
Attachment #385712 -
Flags: review?(LpSolit) → review-
Reporter | ||
Comment 9•16 years ago
|
||
Do you know what specifically broke? Its following the advise from the mozilla wiki, and it works for me.
The problem with your suggestion is that it doesn't help against:
div.foo a { color: red }
to make all the links in given <div> red - the inherit rule has lower specificity.
(untested)
Comment 10•15 years ago
|
||
Okay, I'm starting to agree with you about a:link, we just have to be sure to use it everywhere. (Otherwise we have to have special rules for a[name][href] everywhere that we have a rule for a.) Could we split the CSS issues out into another bug? I think that will make the HTML changes r+.
OS: Linux → All
Hardware: x86 → All
Whiteboard: [needs new patch][es-gnome]
Updated•15 years ago
|
Summary: Small UI fixes to fields.html.tmpl → "a" classes in Bugzilla CSS cause non-href anchors to style like links
![]() |
||
Comment 11•15 years ago
|
||
So what's the status of this patch? It looks right to me.
Updated•15 years ago
|
Assignee: bbaetz → gphemsley
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Whiteboard: [needs new patch][es-gnome] → [fixed by blocker]
Target Milestone: --- → Bugzilla 3.8
You need to log in
before you can comment on or make changes to this bug.
Description
•