Comments

glipay’s picture

Status: Active » Needs review
StatusFileSize
new672 bytes

it looks like the javascript was broken when someone changed the <label> syntax to the <h3> syntax.

glipay’s picture

Assigned: Unassigned » glipay
aspilicious’s picture

It works, but we need to add some styling to make it look like it did in alpha 6.

1) font-size is to small
2) list-style-type: disc; (or something similar, didn't look up) is missing

aspilicious’s picture

Status: Needs review » Needs work

Has to be done for at least seven.
Marking this needs work.

BarisW’s picture

Assigned: glipay » BarisW
Status: Needs work » Needs review
StatusFileSize
new31.46 KB
new31.03 KB
new1.83 KB

Alllright!

I've added another patch that tackles the styling issues as well.

reglogge’s picture

Status: Needs review » Reviewed & tested by the community

works for me...

reglogge’s picture

Status: Reviewed & tested by the community » Needs review

oops, too early. Bot isn't finished testing yet.

Jeff Burnz’s picture

Status: Needs review » Needs work
Issue tags: +Needs accessibility review
+++ modules/filter/filter.js	22 Aug 2010 05:04:57 -0000
@@ -7,7 +7,7 @@
+      .find('h3').hide()

badness all round, do not use .hide(), use .addClass() and .element-invisible. There is no point in even having a heading if no one can read or hear it.

Powered by Dreditor.

cwgordon7’s picture

@Jeff Burnz, that would be a new feature, and not necessarily a desirable one. The patch by BarisW in #5 retains the previous behavior (before the bug was introduced. The point of the headings is in case JavaScript is disabled, one can still tell which filter tips are for which formats. In other cases, it is superfluous because the setting of the select element already tells you which format it's for. Not sure why the labels show up in the screenshots, they shouldn't be there unless JavaScript is disabled, and they don't show up for me with JavaScript enabled. Besides that, to me this is rtbc.

BarisW’s picture

StatusFileSize
new1.84 KB

How stupid of me. The reason that the heading is not hiding had something to do with another issue I'm working on (changing the H3 to H2 on a node/add form), #890212: text format help text uses wrong headings.

I changed the jQuery selector from being heading-specific (H2) to being a heading-selector (:heading). Makes more sense. This patch hides the heading completely ;)

BarisW’s picture

Status: Needs work » Needs review

Status: Needs review » Needs work

The last submitted patch, 889764_input_filter_tips_2.patch, failed testing.

Jeff Burnz’s picture

@cwgordon7, ar Ok, very good explanation. Thank-you. Indeed this looks good.

BarisW’s picture

Status: Needs work » Needs review

#10: 889764_input_filter_tips_2.patch queued for re-testing.

BarisW’s picture

Allright, anyone wanting to test this?
It took some time, but now testbot returns green!

BarisW’s picture

StatusFileSize
new1.32 KB

@kostask tested it (in the code sprint) and found a bug. Fixed and repatched!

reglogge’s picture

StatusFileSize
new59.17 KB

Call me stupid, but the patch in #10 doesn't solve the initial issue, namely help-texts shown for all input formats all the time. Is this intended? The help-texts for input formats that are not selected are still there.

BarisW’s picture

@reglogge: You're not stupid. I used the wrong jQuery selector $(':heading') instead of $(':header').
Would you be so kind to te-test with the new patch?

reglogge’s picture

Cross-post. Now it works.

BarisW’s picture

StatusFileSize
new1.84 KB

Sigh. I forgot to include the small change in seven/style.css. Added it back to v3.
Should be done now!

kostask’s picture

Status: Needs review » Reviewed & tested by the community

I tested the patch at #20 and everything seems to be working fine.

cwgordon7’s picture

Looks good to me as well.

BarisW’s picture

Thanks for testing!

BarisW’s picture

Lets remove the tag, as it is cleared it #13.

sun’s picture

Status: Reviewed & tested by the community » Needs work
+++ modules/filter/filter.css	23 Aug 2010 13:54:02 -0000
@@ -28,7 +28,16 @@
+#edit-body .filter-guidelines {
+  padding-top: 0.5em;
+}
+#edit-comment-body .filter-guidelines{
+  padding-left: 1.5em;
+}

Under no circumstances we will implement module or field specific styles into filter.css or elsewhere.

+++ modules/filter/filter.js	23 Aug 2010 13:54:02 -0000
@@ -7,7 +7,7 @@
-      .find('label').hide()
+      .find(':header').hide()

This seems to be the actual fix, so what are all the other changes for?

Powered by Dreditor.

BarisW’s picture

StatusFileSize
new7.66 KB
new7.66 KB

The point is that style.css in Seven resets the padding of .filter-guidelines., which makes the guidelines touches the dropdown (ugly).
Is it better to change the padding in style.css?

See screenshots

sun’s picture

If Seven resets the styles, then it also has to set them.

aspilicious’s picture

I roll a patch with the changes only in seven, sun is correct about this.

EDIT: srry no time left for the next couple of days, can someone please fix this

yoroy’s picture

Status: Needs work » Needs review
StatusFileSize
new1.27 KB

Sounds like something even I can handle. Attached patch should result in this:

Only local images are allowed.

Jeff Burnz’s picture

Status: Needs review » Needs work
+++ themes/seven/style.css	12 Sep 2010 09:16:23 -0000
@@ -609,12 +609,13 @@
 .filter-wrapper > div {
   padding-right: 6px;
   padding-left: 6px;
+  padding-bottom: 0;
 }

Why use the child selector here - we can easily support IE6 as well. The padding can be short handed.

.filter-wrapper .fieldset-wrapper {
  padding: 0 6px;
}

Otherwise looking good to go.

Powered by Dreditor.

yoroy’s picture

No idea about the child selector, was already in there. Can indeed be shorthanded. I'm not working on this the next couple hours… :-)

Jeff Burnz’s picture

Status: Needs work » Needs review
StatusFileSize
new1.34 KB

Sure, I can whack this out easy enough :)

giorgosk’s picture

Status: Needs review » Reviewed & tested by the community

#32 patch works as expected in latest opera, Firefox, Chrome, IE8 in windows
Do we mark this as RTBC ?

BarisW’s picture

Please check the guidelines display on the comment form as well. I recall I made some changes in my first patch for this case as well. I'm going on a vacation in an hour, so I don't have anymore time to do this.

yoroy’s picture

Assigned: BarisW » Unassigned

Tips on the comment form would mean Seven being used as the front end theme. Unlikely scenario but looking fine: http://skitch.com/yoroy/dsjjc/sdfsdfsdf-d7

Rtbc indeed.

dries’s picture

Status: Reviewed & tested by the community » Fixed

Checked with sun and he was on board. Committed to CVS HEAD. Thanks all.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.