Problem/Motivation

Bartik's code needs to meet current Drupal coding standards.

Proposed resolution

This issue takes a specific section of Bartik's code, it acts as a "component" issue and improves that section of code with minimal impact on the rest of Bartik's codebase.

This issue aims to clean up and properly format the CSS and templates files without breaking Bartik visually.

This issue primarily looks at the css/components/captions.css file.

Work that needs to be included in patches for this issue are fully outlined in the META issue #1342054: [META] Clean up templates and CSS.

The work needs to be crossed off the list below as completed or stated why they were not applicable to this issue in the comments below, to make sure we cover everything.

Also very helpful! Noting the list items in your comment with the patch to show what parts you added to the patch.

Create a patch containing the potential following work:

Code cleanup work

  1. Check each selector in the CSS file (associated with the particular issue) is in use within core right now.
    If not...
    a) Check to see if the classes in core have been changed and correct them (for e.g. I found this in this issue ).
    or
    b) Remove that CSS completely from the CSS file.
  2. a) Check the CSS selectors are not being replicated in other stylesheets in Bartik.
    b) Check the CSS properties are not being overridden by other stylesheets in Bartik.
    If a) move all of the properties to the selector in the stylesheet that you think most appropriate for the component you are dealing with.
    If a) and b) also remove the CSS properties and values being overridden within that ruleset.
  3. If you find CSS for a component which seems out of place in the file it is currently in move it to the one you think is the correct one.
  4. If a selector appears to be too long and/or too specific, check if the selector can be simplified. for eg. .something .something .something { } being modified to .something .something { }.
  5. Check that RTL styles exist when needed and are formatted as per the guidelines. (for e.g. we found that RTL styles are broken on certain pages in this issue, so fix anything you see missing/incorrect in the CSS file.
  6. If you think the contents of the CSS file could be further broken down into more components CSS files, or grouped together with other existing CSS files to form one component do it. The initial SMACSS issue may not of been perfect, guidelines on CSS file organisation for Drupal 8 can be found here.
  7. Check the markup from the templates that all of the classes are used as selectors in the CSS files. If not remove them. See an example issue here for this.

Code formatting work

  1. Add a File comment to the top of the stylesheet - see here for guidelines.
  2. Check any other comments are formatted correctly - see here for guidelines.
  3. Check Whitespace is being used correctly, this includes indentations and line breaks - see here for guidelines.
  4. Check the formatting of rulesets, properties and media queries are correct - see here for guidelines.
  5. As mentioned above, check existing RTL styles are formatted correctly - see here for guidelines.

Remaining tasks

  • Assess the code applicable to this patch and figure out what work in the lists above need to be included in the patch.
  • Cross out work tasks that do not apply to this issue.
  • Write a patch with as much work as you want to include, upload and comment what you included
  • Review the patch - code review and visual changes
  • Upload screenshots to show nothing/something is broken on the frontend

User interface changes

None, we are cleaning up CSS and markup in templates. The use of Bartik's UI and design will stay the same.

API changes

n/a

Beta phase evaluation

Reference: https://www.drupal.org/core/beta-changes
Issue category Task because it is a code clean up overhaul of a theme.
Unfrozen changes Unfrozen because it only refactors CSS and templates, no changes to UI or APIs
Prioritized changes The main goal of this issue is usability and performance. We want Bartik code to be up to date and something to be proud of.
Disruption No disruption it's only refactoring code not changing how to use the theme
CommentFileSizeAuthor
#84 alignmentwithpatch.png4.3 MBroberttabigue
#84 Alignmentwithoutpatch.png4.38 MBroberttabigue
#76 afterPatch-74.png41.98 KBasha nair
#76 beforePatch-74.png96.67 KBasha nair
#74 2398459-74.patch402 bytesShubham Sharma 77
#73 2398459-73.patch402 bytesShubham Sharma 77
#70 2398459-70.patch5.16 KBshashwat purav
#69 after-patch-#66.png46.95 KBasha nair
#69 before-patch-#66.png77.61 KBasha nair
#66 2398459.66.patch5.17 KBsakthivel m
#63 Before-patch.png443.89 KBdjsagar
#63 After-patch.png467.42 KBdjsagar
#60 captions.css-2398459-60.patch830 bytesbandanasharma
#52 captions.css-2398459-51.patch901 bytesakshay kashyap
#52 After_patch.png134.86 KBakshay kashyap
#52 Before_patch.png145.57 KBakshay kashyap
#50 interdiff-2398459-44-50.txt1.24 KBjmehta
#50 2398459-50.patch809 bytesjmehta
#46 interdiff-44-26.txt2.28 KBsudhanshug
#44 cleanup_captions-2398459-37.patch2.31 KBsudhanshug
#39 interdiff-27-36.txt1.3 KBsudhanshug
#37 interdiff-27-36.diff1.3 KBsudhanshug
#36 cleanup_captions-2398459-34.patch1.11 KBsudhanshug
#33 cleanup_captions-2398459-33.patch2.55 KBsudhanshug
#33 Screenshot from 2016-01-03 13:31:14.png5.55 KBsudhanshug
#33 Screenshot from 2016-01-03 13:32:24.png76.8 KBsudhanshug
#32 Bartik image overhangs caption.jpg61.76 KBjohnflower
#31 Bartik caption overhang - Right.jpg81.52 KBjohnflower
#31 Bartik caption overhang - Left.jpg93.56 KBjohnflower
#26 clean_up_captions-2398459-26.patch1.1 KBemma.maria
#26 interdiff-17-26.txt691 bytesemma.maria
#26 border-fixed.png586.69 KBemma.maria
#25 captions-refactor-visual-test.pdf1.84 MBemma.maria
#25 missing-border.png15.95 KBemma.maria
#25 captions-fix.png570.21 KBemma.maria
#25 Screen Shot 2015-09-11 at 12.11.06.png587.29 KBemma.maria
#18 interdiff-2398459-14-17.txt477 bytesbfodeke
#17 issue-2398459-17.patch1.04 KBbfodeke
#17 Screen-Recording-2015-05-15-at-04.35-PM.gif410.48 KBbfodeke
#17 Screen-Recording-2015-05-15-at-04.25-PM.gif503.57 KBbfodeke
#17 pre_caption.png10.7 KBbfodeke
#17 blockquote_caption.png21.98 KBbfodeke
#15 after.png138.92 KBjannis
#15 before.png133.37 KBjannis
#14 interdiff.txt831 bytesjannis
#14 issue-2398459-14.patch966 bytesjannis
#12 wdwdwdw___Site-Install.png282 KBemma.maria
#11 caption-notactive-blockquote.png44.97 KBDickJohnson
#9 issue-2398459-interdiff-5-9.txt575 bytesolmaga
#9 issue-2398459-9.patch686 bytesolmaga
#5 css_cleanup-2398459-5.patch400 bytesschnitzel
#3 css_cleanup-2398459-3.patch392 bytesdernetzjaeger

Issue fork bartik-2398459

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

emma.maria’s picture

Title: Clean up "captions" CSS in Bartik » Clean up "captions" component in Bartik
emma.maria’s picture

dernetzjaeger’s picture

StatusFileSize
new392 bytes

added file comment

dernetzjaeger’s picture

Status: Active » Needs review
schnitzel’s picture

StatusFileSize
new400 bytes

couldn't apply the patch, something was strange. fixed it and uploaded the patch again.

The last submitted patch, 3: css_cleanup-2398459-3.patch, failed testing.

DickJohnson’s picture

Status: Needs review » Needs work

1. There should be blank line after file comment
2. Hexas should be written in small letters

olmaga’s picture

Assigned: Unassigned » olmaga
olmaga’s picture

Status: Needs work » Needs review
StatusFileSize
new686 bytes
new575 bytes

Here i changed to lowercase color values

dernetzjaeger’s picture

Assigned: olmaga » Unassigned

@olmaga
Thanks for working on this task. please unassign yourself, so everybody knows that this is ready for review and not reviewed by you :)

DickJohnson’s picture

Status: Needs review » Needs work
StatusFileSize
new44.97 KB

1. We should have empty line after file-comment.
2. I tried to make blockquote to caption, but didn't manage to do it. So from my point of view that part of styling is unnecessary.
Caption
3. Should we change font-size: small to em's as this is pretty much only place in Bartik where we're using keywords?

emma.maria’s picture

Issue summary: View changes
Issue tags: +Novice
StatusFileSize
new282 KB

Detailed review of the patch in #9.

 

  1. A blank line is needed after the file comment.
    /**
     * @file
     * Bartik styling for Captions.
     */
    .caption {
      margin-bottom: 1.2em;
    }
  2.  

  3. Let's change all instance of ex to em's.
    padding-top: 0.5ex;
    We don't use ex anywhere else and it's causing a visual issue with image captions.
     
  4.  

  5. Let's use an em value here also for consistency with font sizes. Check the computed value in the browser and replace with a sensible em value.
    font-size: small;
  6.  

  7. Remove any duplicated styles in the stylesheet under specific selectors.
    for eg.
    border: 1px solid #ccc; within .caption > figcaption { when it is already declared in .caption > *{
  8.  

  9. Simplify over specific classes for eg. we can just use .caption instead of .caption-pre
    .caption-pre > pre,
    .caption-blockquote > blockquote {
    

 
Note: There are styles for .caption-pre and .caption-blockquote inside this stylesheet. This is because you can edit the html and use the attribute data-caption to add captions to these elements. I could not find this documented anywhere, but I found a reference by Wim in another issue here.

jannis’s picture

i'm working on this now

jannis’s picture

Status: Needs work » Needs review
Issue tags: +Needs screenshots
StatusFileSize
new966 bytes
new831 bytes

Worked on this issue at DrupalCon LA

Addressed most of the comments from #12:
1, 2, 3, & 4 - done
5 - done, but needs work since you cant't add blockquote/pre to caption with the current wysiwyg #2268941-2: Removing caption from a previously captioned image fails to remove the caption-related classes

This issue needs screenshots.

jannis’s picture

StatusFileSize
new133.37 KB
new138.92 KB

added before and after screenshots

bfodeke’s picture

I'm currently reviewing this

bfodeke’s picture

I talked with @emma.maria to get clarification on validating blockquote and pre caption styles. These currently cannot be done through the wysiwyg UI, but can be done by manually typing in the required data-caption data attribute.

Adding a caption to a blockquote:

<blockquote data-caption="I am a blockquote caption">
<p>I am a blockquote. My data-caption='something'</p>
</blockquote>

Will yield:
Only local images are allowed.

Adding a caption to 'pre':

<pre data-caption="I am a pre caption">
…. content ...
</pre>

Will yield:
Only local images are allowed.

The issue with alignment of the figurecaption element with the image varies based on the width of the viewport:
Gif of figcaption width issue

With the issue fixed:
Issue fixed with css box-sizing

bfodeke’s picture

StatusFileSize
new477 bytes

Interdiff file attached

mgifford’s picture

Issue tags: +html5

Shouldn't we be using HTML6HTML5's figure/figcaption? - http://www.w3.org/wiki/HTML/Elements/figcaption

In the patches I've seen they are just CSS. Am I missing something?

EDIT: No idea why I typed HTML6....

emma.maria’s picture

@mgifford I'm not sure. Bartik is just theming what is given to in the markup from Core. We do target the figcaption tag also in the styles.

emma.maria’s picture

mgifford’s picture

@emma.maria HTML5's figure/figcaption is available in CKEditor. Not sure where else we're seeing examples of captions in Core. Where would be a good place (other than CKEditor) to see what Core is spitting out?

wim leers’s picture

#17: <3 <3 AWESOME!

#21: this does not need to be blocked on that issue at all, just create the markup manually. Disable JavaScript, create <img src="some image" data-align="center" data-caption="Caption text." />

+++ b/core/themes/bartik/css/components/captions.css
@@ -1,23 +1,28 @@
-.caption-pre > pre,
-.caption-blockquote > blockquote {
+.caption > pre,
+.caption > blockquote {

Why these changes? Look at git blame, see the issues that made it this way. This was not done on a whim.

emma.maria’s picture

OK now that this is fixed #2540850: (regression) EditorImageDialog alignment & captioning are not working we can again test this in the UI and check the generated markup.

#23 I spent a while before poring over the markup and this was a valid change at the time...

+++ b/core/themes/bartik/css/components/captions.css
@@ -1,23 +1,28 @@
-.caption-pre > pre,
-.caption-blockquote > blockquote {
+.caption > pre,
+.caption > blockquote {
emma.maria’s picture

Issue summary: View changes
Status: Needs review » Needs work
StatusFileSize
new587.29 KB
new570.21 KB
new15.95 KB
new1.84 MB

I used this HTML code in the WYSIWYG field to test this issue...

<img alt="cat hat" data-caption="I am a caption for an image" data-entity-type="file" data-entity-uuid="34aa6204-b9fc-4940-be02-2c4f5e8aea04" src="/sites/default/files/inline-images/Cat-with-hat.jpg" />

<blockquote data-caption="I am a blockquote caption">Sed fringilla mauris sit amet nibh. Donec vitae sapien ut libero venenatis faucibus. Maecenas malesuada.</blockquote>

<pre data-caption="I am a pre tag caption">
body {
  color:red;
}
</pre>

I added captions to an image, a blockquote and preformatted text.

I got the following markup on the frontend...

Image

<figure role="group" class="caption caption-img">
  <img alt="cat hat" data-entity-type="file" data-entity-uuid="34aa6204-b9fc-4940-be02-2c4f5e8aea04" src="/sites/default/files/inline-images/Cat-with-hat.jpg">
  <figcaption>I am a caption for an image</figcaption>
</figure>

Blockquote

<figure role="group" class="caption caption-blockquote">
  <blockquote>Sed fringilla mauris sit amet nibh. Donec vitae sapien ut libero venenatis faucibus. Maecenas malesuada.</blockquote>
  <figcaption>I am a blockquote caption</figcaption>
</figure>

Preformatted text

<figure role="group" class="caption caption-pre">
  <pre>
  body {
    color:red;
  }
  </pre>
  <figcaption>I am a pre tag caption</figcaption>
</figure>

and the following visual on the frontend...
 

I ran visual regression testing the new code actually fixes a bug at small widths on the Image component...
 

 
And now I see why @Wim Leers highlighted the potential need for the code snippet in #23 pre html does not wrap the contents in a box so a border-top is needed for the caption only on this component.
 

 
To accommodate this I will add a CSS rule to remove the border-top on all captions except .caption-pre

I will upload the fix in a new patch with screenshots.

emma.maria’s picture

Issue summary: View changes
Status: Needs work » Needs review
Issue tags: -Needs screenshots
StatusFileSize
new586.69 KB
new691 bytes
new1.1 KB

OK I've added this rule to fix the border regression. I think it is best to have an exception rule for one thing then set it for many.

.caption:not(.caption-pre) > figcaption {
  border-top: none;
}

 

 
I also fixed a nit in the file comment.

Can someone please check over my review in #25, my new patch here and RTBC this pretty please :-)

lewisnyman’s picture

Status: Needs review » Needs work

Nice

+++ b/core/themes/bartik/css/components/captions.css
@@ -1,23 +1,29 @@
+  -webkit-box-sizing: border-box;
+  -moz-box-sizing: border-box;
+  box-sizing: border-box;

Do we need all these vendor prefixes?

wim leers’s picture

  1. +++ b/core/themes/bartik/css/components/captions.css
    @@ -1,23 +1,29 @@
    -  padding-top: 0.5ex;
    ...
    +.caption:not(.caption-pre) > figcaption {
    +  border-top: none;
    +}
    

    This is now just repeating what .caption > figcaption used to do generically. Why is it worth having a separate selector for this?

  2. +++ b/core/themes/bartik/css/components/captions.css
    @@ -1,23 +1,29 @@
    -.caption-pre > pre,
    -.caption-blockquote > blockquote {
    +.caption > pre,
    +.caption > blockquote {
    

    And I see how this is cleaner, but what do we really gain by this change?

lewisnyman’s picture

.caption-blockquote
If these classes are redundant, we could remove them from the mark up?

+.caption:not(.caption-pre) > figcaption {
+  border-top: none;
+}

It's not the same, this is ensuring that the caption-pre has a top border, I thought this was fixing a visual bug?

wim leers’s picture

Oh, you're right, that fixes a regression in HEAD. So, disregard #28.1.

If these classes are redundant, we could remove them from the mark up?

But they're not redundant, as the use of the .caption:not(.caption-pre) > figcaption selector shows. Until CSS has a :has() selector or something like that, we'd need this, unfortunately :(

johnflower’s picture

If the captioned image width is greater than the screen width it will overhang. This does not happen with uncaptioned images. This was observed in Bartik 8.0.1.

Bartik caption overhang L Bartik caption overhang R

johnflower’s picture

StatusFileSize
new61.76 KB

At small browser widths the image overhangs the caption.

Image overhangs caption

sudhanshug’s picture

StatusFileSize
new76.8 KB
new5.55 KB
new2.55 KB

Fixed the issue by using CSS 3's calc().
The cause of the problem was the padding of image.
Set the max-width to 100% and displayed the .caption as block.
Used !important to override styles of other css files.

The first two image files reflect the changes.

sudhanshug’s picture

Status: Needs work » Needs review

Status: Needs review » Needs work

The last submitted patch, 33: cleanup_captions-2398459-33.patch, failed testing.

sudhanshug’s picture

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

sorry for previous patch
Uploaded new one

sudhanshug’s picture

StatusFileSize
new1.3 KB

Status: Needs review » Needs work

The last submitted patch, 37: interdiff-27-36.diff, failed testing.

sudhanshug’s picture

StatusFileSize
new1.3 KB
sudhanshug’s picture

Status: Needs work » Needs review
cs_shadow’s picture

1. Looks like you've changed some of the coding standards while modifying the file. Please revert them.
- The file comment at the top of the file.
- Using capital letters for color codes etc.

2. I'm not a CSS expert but it'll be better if you could avoid the use of !important

cs_shadow’s picture

Status: Needs review » Needs work
wim leers’s picture

Isn't this issue supposed to be solely about cleaning up the component, and not about fixing bugs? For fixing the bug, we already have #2568597: [upstream][Firefox] The CSS used for Filter/Editor captions is not responsive.

sudhanshug’s picture

StatusFileSize
new2.31 KB

@wim This patch contains the cleaned up CSS and also fixes the bugs.

sudhanshug’s picture

Status: Needs work » Needs review
sudhanshug’s picture

StatusFileSize
new2.28 KB
wim leers’s picture

Your interdiff is the entire patch. It's impossible to see what you've changed.

And in #44 you're just repeating what I say is the problem. That's not an answer.

johnflower’s picture

My mistake. I misread. This issue is about beautifying the code, not about beautifying what the code does.

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.

jmehta’s picture

Version: 8.1.x-dev » 8.2.x-dev
StatusFileSize
new809 bytes
new1.24 KB

I created the new patch to make sure that the css guidelines are followed and removed all the code fixes that were done on the previous patch number 44

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

Drupal 8.2.0-beta1 was released on August 3, 2016, which means new developments and disruptive changes should now 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.

akshay kashyap’s picture

StatusFileSize
new145.57 KB
new134.86 KB
new901 bytes

#50 I have review the patch, apply successfully and working fine. I have attached After_patch image and Before_patch images.
I test this patch in Firefox and Chrome browser. It's Working fine.
But in captions.css file, I have found ex instated of em.
According to #12 comments and #14 patch changes, these need to be change.
So I have made these change and add patch.

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

Drupal 8.3.0-alpha1 will be released the week of January 30, 2017, which means new developments and disruptive changes should now 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.4.x-dev » 8.5.x-dev

Drupal 8.4.0-alpha1 will be released the week of July 31, 2017, which means new developments and disruptive changes should now 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.5.x-dev » 8.6.x-dev

Drupal 8.5.0-alpha1 will be released the week of January 17, 2018, which means new developments and disruptive changes should now 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.6.x-dev » 8.7.x-dev

Drupal 8.6.0-alpha1 will be released the week of July 16, 2018, which means new developments and disruptive changes should now 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.7.x-dev » 8.8.x-dev

Drupal 8.7.0-alpha1 will be released the week of March 11, 2019, which means new developments and disruptive changes should now be targeted against the 8.8.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.8.x-dev » 8.9.x-dev

Drupal 8.8.0-alpha1 will be released the week of October 14th, 2019, which means new developments and disruptive changes should now be targeted against the 8.9.x-dev branch. (Any changes to 8.9.x will also be committed to 9.0.x in preparation for Drupal 9’s release, but some changes like significant feature additions will be deferred to 9.1.x.). 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.1.x-dev

Drupal 8.9.0-beta1 was released on March 20, 2020. 8.9.x is the final, long-term support (LTS) minor release of Drupal 8, which means new developments and disruptive changes should now 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.

bandanasharma’s picture

StatusFileSize
new830 bytes

Reroll the patch for 9.1.x because #52 patch is not working with 9.

tanubansal’s picture

Tested #60, its working fine on 9.1

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

Drupal 9.1.0-alpha1 will be released the week of October 19, 2020, which means new developments and disruptive changes should now be targeted for the 9.2.x-dev branch. For more information see the Drupal 9 minor version schedule and the Allowed changes during the Drupal 9 release cycle.

djsagar’s picture

Status: Needs review » Reviewed & tested by the community
StatusFileSize
new467.42 KB
new443.89 KB

Tested #60, its also working fine on 9.2-dev.

For more info please review the attachment.

Thanks!

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

Drupal 9.2.0-alpha1 will be released the week of May 3, 2021, which means new developments and disruptive changes should now be targeted for the 9.3.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

lauriii’s picture

Status: Reviewed & tested by the community » Needs work
  1. +++ b/core/themes/bartik/css/components/captions.css
    @@ -3,21 +3,21 @@
    -.caption-pre > pre,
    -.caption-blockquote > blockquote {
    +.caption > pre,
    +.caption > blockquote {
    

    Why are we changing this selector?

  2. We should update the @file documentation to match our current coding standards.
sakthivel m’s picture

StatusFileSize
new5.17 KB

Providing updated version of patch #66 as per comment #65, Please review the patch

sakthivel m’s picture

Status: Needs work » Needs review

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

Drupal 9.3.0-rc1 was released on November 26, 2021, which means new developments and disruptive changes should now be targeted for the 9.4.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

asha nair’s picture

StatusFileSize
new77.61 KB
new46.95 KB

Applied patch #66 successfully. Works fine

shashwat purav’s picture

StatusFileSize
new5.16 KB

Added patch for the 9.4.x version.

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

Drupal 9.4.0-alpha1 was released on May 6, 2022, which means new developments and disruptive changes should now 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.

Shubham Sharma 77’s picture

Status: Needs review » Needs work

Applied patch #70 is not working.
Why are we changing the class, font-size and padding?
We can add box-sizing to fixed this.
Example:-

.caption > * {
 + box-sizing: border-box;
}
Shubham Sharma 77’s picture

Status: Needs work » Needs review
StatusFileSize
new402 bytes

Applied patch #70 is not working.
Attached reroll patch against Drupal 9.5.x.

Shubham Sharma 77’s picture

StatusFileSize
new402 bytes

Updating patch after Fixing failed test cases.

Munavijayalakshmi’s picture

Assigned: Unassigned » Munavijayalakshmi
asha nair’s picture

StatusFileSize
new96.67 KB
new41.98 KB

Applied patch in #74 in 9.5.x-dev. This patch fixes the issue. Adding screenshots

Shubham Sharma 77’s picture

Assigned: Munavijayalakshmi » Unassigned
Status: Needs review » Reviewed & tested by the community

Move this ticket to RTBC.

Status: Reviewed & tested by the community » Needs work

The last submitted patch, 74: 2398459-74.patch, failed testing. View results

Shubham Sharma 77’s picture

Status: Needs work » Reviewed & tested by the community

The last submitted patch, #74, passed testing. So, move this ticket to RTBC.

wim leers’s picture

Project: Drupal core » Bartik
Version: 9.5.x-dev » 1.0.2
Component: Bartik theme » Code
Status: Reviewed & tested by the community » Needs work
Issue tags: +Needs reroll

This is now a contrib theme: https://www.drupal.org/project/bartik

rpayanm made their first commit to this issue’s fork.

rpayanm’s picture

Status: Needs work » Needs review
Issue tags: -Needs reroll
roberttabigue’s picture

Status: Needs review » Reviewed & tested by the community
StatusFileSize
new4.38 MB
new4.3 MB

Hi @rpayanm

Confirmed resolved the alignment issue of the caption below the image when I applied the MR !1 to the Bartik theme against 1.0.2 version and with the Drupal core version 9.5.6.

Moving now to RTBC and
Please see the attached screenshots for your reference.

liam morland made their first commit to this issue’s fork.

liam morland’s picture

Version: 1.0.2 » 1.0.x-dev
Status: Reviewed & tested by the community » Fixed

Now that this issue is closed, please review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, please credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

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