Comments

roblav’s picture

Status: Active » Needs work
lewisnyman’s picture

Status: Needs work » Needs review
Issue tags: +styleguide
StatusFileSize
new4.81 KB

Ok, here's a patch. It's pretty cool to have these documented in a living style guide. It exposes a lot that would get ignored otherwise.

lewisnyman’s picture

Issue tags: +Usability
jhodgdon’s picture

Status: Needs review » Needs work

This file should start with an @file doc block.

This patch seems also very unmaintainable, if you have to do things like

+Styleguide 1.1.1
+*/
 a,

If someone adds a new element and it logically goes between 1.1.1 and 1.1.2, you would have to renumber everything. Is this really necessary?

tadityar’s picture

Status: Needs work » Postponed

Postponed until things have been decided in #2293627: [meta] Document Human Interface Guidelines

lewisnyman’s picture

Status: Postponed » Active
lewisnyman’s picture

Status: Active » Needs work
Issue tags: +Needs reroll

This needs a reroll and a change from the feedback in #5:

This file should start with an @file doc block.

The maintainability of the styleguide: x.y.z has been discussed in #2404111: [Meta] Create a visual style guide for the Seven theme. It's the current limitation of the solution, let's leave them as is now.

tadityar’s picture

Status: Needs work » Needs review
StatusFileSize
new5.03 KB

Is the @file docblock correct? There was one conflict and I used the one from the patch because it seems more consistent with other blocks.

lewisnyman’s picture

Status: Needs review » Needs work
Issue tags: -Needs reroll
  1. +++ b/core/themes/seven/css/base/elements.css
    @@ -1,11 +1,28 @@
    +Link
    +
    +Markup: <a>Link</a>
    +<button class="link">Button styled as link</button>
    

    I think it's worth mentioning in a comment that here is a reuseable .link class that can be use to make any element look like a link.

  2. +++ b/core/themes/seven/css/base/elements.css
    @@ -25,16 +50,32 @@ hr {
    -/**
    - * Reusable heading classes are included to help modules change the styling of
    - * headings on a page without affecting accessibility.
    - */
    +/*
    +Headers
    +
    +Markup: <h1>Header 1</h1>
    +<h2>Header 2</h2>
    

    Can we move this comment about the heading classes into the new comment?

  3. +++ b/core/themes/seven/css/base/elements.css
    @@ -71,9 +112,75 @@ h6,
    +Paragraph
    +
    +Markup: <p>Williamsburg direct trade hoodie lo-fi. Organic food truck american apparel hoodie hashtag fingerstache viral, fashion axe ethnic bespoke 8-bit irony helvetica flexitarian master cleanse.</p>
    

    This comments is too long and goes off the 80 character width. It's also maybe too hipster for Drupal core :P Shall we just latin like in http://getbootstrap.com/css/#type-body-copy ?

I have also added a styleguide task to https://github.com/lewisnyman/drupalcore-frontend-toolkit. If you follow the instructions you can use it to check that your work is being parsed by KSS correctly.

lewisnyman’s picture

Status: Needs work » Needs review
StatusFileSize
new1.66 KB
new5.59 KB

Made the changes above with a few other improvements.

jhodgdon’s picture

Status: Needs review » Needs work

Um, why are you using this type of syntax in the comments? This goes against all of our guidelines and standards for documentation:

+/*
+Generic elements
+
+Generic elements that are used in the Seven theme.
+
+Styleguide 1.0
+*/
lewisnyman’s picture

Status: Needs work » Needs review

@jhodgdon That's the syntax that KSS parses, I don't think that it's possible to add *s in on every line because KSS interprets them as markdown lists, see the example docs: http://warpspire.com/kss/syntax/

jhodgdon’s picture

That is extremely totally utterly lame. I wonder if we should rethink this. Probably should discuss on the parent issue, which did not really I think come to a conclusion that this was a good thing to do, given that the comments are weird, don't comply with our other comment standards, and don't stand out well in the file as comments like other comments would.

lewisnyman’s picture

given that the comments are weird, don't comply with our other comment standards, and don't stand out well in the file as comments like other comments would.

These are flimsy reasons, considering that the PHP comment standards are inherited from Doxygen, a common standard for backend code documentation. To hold frontend code to the same standards as backend instead of embracing on a common standard for frontend code documentation feels overly conservative and not-invented-here.

If you have any alternative suggestions I'd love to hear it, help find me an implementation of Doxygen for CSS, because I couldn't. I'm getting tired of this going nowhere.

jhodgdon’s picture

I replied to this comment on the parent issue -- let's continue the discussion there, and meanwhile I think all these issues should not have been un-postponed.

lewisnyman’s picture

Status: Needs review » Postponed

Version: 8.0.x-dev » 8.1.x-dev

Drupal 8.0.6 was released on April 6 and is the final bugfix release for the Drupal 8.0.x series. Drupal 8.0.x will not receive any further development aside from security fixes. Drupal 8.1.0-rc1 is now available and sites should prepare to update to 8.1.0.

Bug reports should be targeted against the 8.1.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.2.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.1.x-dev » 8.2.x-dev

Drupal 8.1.9 was released on September 7 and is the final bugfix release for the Drupal 8.1.x series. Drupal 8.1.x will not receive any further development aside from security fixes. Drupal 8.2.0-rc1 is now available and sites should prepare to upgrade to 8.2.0.

Bug reports should be targeted against the 8.2.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.3.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.2.x-dev » 8.3.x-dev

Drupal 8.2.6 was released on February 1, 2017 and is the final full bugfix release for the Drupal 8.2.x series. Drupal 8.2.x will not receive any further development aside from critical and security fixes. Sites should prepare to update to 8.3.0 on April 5, 2017. (Drupal 8.3.0-alpha1 is available for testing.)

Bug reports should be targeted against the 8.3.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.4.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.3.x-dev » 8.4.x-dev

Drupal 8.3.6 was released on August 2, 2017 and is the final full bugfix release for the Drupal 8.3.x series. Drupal 8.3.x will not receive any further development aside from critical and security fixes. Sites should prepare to update to 8.4.0 on October 4, 2017. (Drupal 8.4.0-alpha1 is available for testing.)

Bug reports should be targeted against the 8.4.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.5.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.4.x-dev » 8.5.x-dev

Drupal 8.4.4 was released on January 3, 2018 and is the final full bugfix release for the Drupal 8.4.x series. Drupal 8.4.x will not receive any further development aside from critical and security fixes. Sites should prepare to update to 8.5.0 on March 7, 2018. (Drupal 8.5.0-alpha1 is available for testing.)

Bug reports should be targeted against the 8.5.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.6.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.5.x-dev » 8.6.x-dev

Drupal 8.5.6 was released on August 1, 2018 and is the final bugfix release for the Drupal 8.5.x series. Drupal 8.5.x will not receive any further development aside from security fixes. Sites should prepare to update to 8.6.0 on September 5, 2018. (Drupal 8.6.0-rc1 is available for testing.)

Bug reports should be targeted against the 8.6.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.7.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.6.x-dev » 8.8.x-dev

Drupal 8.6.x will not receive any further development aside from security fixes. Bug reports should be targeted against the 8.8.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.9.x-dev branch. For more information see the Drupal 8 and 9 minor version schedule and the Allowed changes during the Drupal 8 and 9 release cycles.

Version: 8.8.x-dev » 8.9.x-dev

Drupal 8.8.7 was released on June 3, 2020 and is the final full bugfix release for the Drupal 8.8.x series. Drupal 8.8.x will not receive any further development aside from security fixes. Sites should prepare to update to Drupal 8.9.0 or Drupal 9.0.0 for ongoing support.

Bug reports should be targeted against the 8.9.x-dev branch from now on, and new development or disruptive changes should be targeted against the 9.1.x-dev branch. For more information see the Drupal 8 and 9 minor version schedule and the Allowed changes during the Drupal 8 and 9 release cycles.

Version: 8.9.x-dev » 9.2.x-dev

Drupal 8 is end-of-life as of November 17, 2021. There will not be further changes made to Drupal 8. Bugfixes are now made to the 9.3.x and higher branches only. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 9.2.x-dev » 9.3.x-dev

Version: 9.3.x-dev » 9.4.x-dev

Drupal 9.3.15 was released on June 1st, 2022 and is the final full bugfix release for the Drupal 9.3.x series. Drupal 9.3.x will not receive any further development aside from security fixes. Drupal 9 bug reports should be targeted for the 9.4.x-dev branch from now on, and new development or disruptive changes should be targeted for the 9.5.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

longwave’s picture

Project: Drupal core » Seven
Version: 9.4.x-dev » 1.0.0-alpha1
Component: Seven theme » Code
avpaderno’s picture

Version: 1.0.0-alpha1 » 1.0.x-dev
avpaderno’s picture

Status: Postponed » Closed (outdated)