Edgewall Software
Modify

Opened 10 years ago

Closed 10 years ago

#11447 closed enhancement (wontfix)

Use a hidden class rather than inline style tag

Reported by: Ryan J Ollos Owned by:
Priority: normal Milestone:
Component: general Version:
Severity: normal Keywords: css
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description (last modified by Ryan J Ollos)

I'd like to propose a minor change, of using a hidden class for at least the following cases:

$ grep -R "style=\"display: none\"" . --exclude-dir=.svn
./trac/ticket/templates/ticket.html:                <span id="trac-threaded-toggle" style="display: none">
./trac/templates/error.html:                  <ul py:if="frames" style="display: none">
./trac/templates/error.html:                      <div py:if="frame.line" class="source" style="display: none">
./trac/templates/error.html:                      <div py:if="frame.vars" class="vars" style="display: none">
./trac/templates/error.html:                  <p style="display: none"><input type="button" id="tbtoggle" value="${_('Switch to plain text view')}" /></p>

The hidden class could be added to trac.css.

Attachments (0)

Change History (2)

comment:1 by Remy Blank, 10 years ago

The tags with display: none are usually ones that are manipulated (i.e. shown and hidden) through jQuery, which will set the display property on the tag directly. So there's no real advantage of using a CSS class. It's actually almost a convention in Trac to mark such JavaScript-updated tags in this way.

Last edited 10 years ago by Remy Blank (previous) (diff)

comment:2 by Ryan J Ollos, 10 years ago

Description: modified (diff)
Milestone: 1.0.3
Resolution: wontfix
Status: newclosed

Thanks for the input. I'll go ahead and close this then.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The ticket will remain with no owner.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from (none) to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.