Skip to content

Adding a red asterisk to the required checkboxes#823

Merged
tblivet merged 5 commits intoPrestaShop:developfrom
mgielecinski:adding-a-red-star-to-the-required-checkboxes
Nov 24, 2025
Merged

Adding a red asterisk to the required checkboxes#823
tblivet merged 5 commits intoPrestaShop:developfrom
mgielecinski:adding-a-red-star-to-the-required-checkboxes

Conversation

@mgielecinski
Copy link
Contributor

Questions Answers
Description? Adding a red asterisk to the required checkboxes ( before label )
Type? improvement
BC breaks? no
Deprecations? no
Fixed ticket?
Sponsor company
How to test? Go to the registration or order page and check the required checkboxes

Before
image

After
image

@ps-jarvis
Copy link

Hello @mgielecinski!

This is your first pull request on hummingbird repository of the PrestaShop project.

Thank you, and welcome to this Open Source community!

@github-project-automation github-project-automation bot moved this to Ready for review in PR Dashboard Nov 14, 2025
Copy link
Contributor

@tblivet tblivet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @mgielecinski, thanks for your contribution 👍
You'll find a small suggestion to make it cleaner in terms of architecture.

Comment on lines +12 to +19
.form-check-label {
&.required {
&::before {
color: var(--bs-danger);
content: "*" / " ";
}
}
} No newline at end of file
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This code should be moved into a new file to match Bootstrap’s architecture.
I think it should be placed inside a new src/scss/bootstrap/components/_form-check.scss file.

$component-name: form-check-label;

.#{$component-name} {
  &.required {
    &::before {
      color: var(--bs-danger);
      content: "*" / " ";
    }
  }
}

@mgielecinski
Copy link
Contributor Author

Right, thanks @tblivet for the tip. I applied your suggestions and move code to new scss file.

@mgielecinski mgielecinski requested a review from tblivet November 17, 2025 12:08
content: "*" / " ";
}
}
} No newline at end of file
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the modification 🙏
Don't forget to add a blank line at the end of the _form-check.scss file.
Then it's good for me 👍

tblivet
tblivet previously approved these changes Nov 17, 2025
@ps-jarvis ps-jarvis moved this from Ready for review to To be tested in PR Dashboard Nov 17, 2025
Copy link
Contributor

@tblivet tblivet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mgielecinski Thanks for the lint 😀

@ingridusta ingridusta self-assigned this Nov 24, 2025
Copy link

@ingridusta ingridusta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello @mgielecinski,

I have test ur pr and it's working fine !
Capture d’écran 2025-11-24 à 15 38 08
Capture d’écran 2025-11-24 à 15 37 59
Capture d’écran 2025-11-24 à 15 37 51

It's QA approved. Thanks 👍

@tblivet tblivet merged commit b970288 into PrestaShop:develop Nov 24, 2025
6 checks passed
@github-project-automation github-project-automation bot moved this from To be tested to Merged in PR Dashboard Nov 24, 2025
@ps-jarvis ps-jarvis moved this from Merged to To be tested in PR Dashboard Nov 24, 2025
@ps-jarvis
Copy link

PR merged, well done!

Message to @PrestaShop/committers: do not forget to milestone it before the merge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

5 participants