-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue #3415665 by joshua1234511: Utilize Focal Point module #1242
Conversation
/** | ||
* Defines the image style constants. | ||
*/ | ||
const PROMO_IMAGE_STYLE = 'civictheme_promo_card'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@AlexSkrypnyk We need to decide on which style to be used for each type of cards.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@joshua-salsadigital
yep. we need to have an image style per component.
- Please use exact component names in variables
PROMO_IMAGE_STYLE
->PROMO_CARD_IMAGE_STYLE
etc. - There should be a dedicated image style per constant below. If it does not exist -please create one.
civictheme_thumbnail
should not be used anymore - please asses all areas where it is used and replace with a specific named image style. The style values would be copied from thecivictheme_thumbnail
at this stage + focal point adjustments. - Remove
civictheme_thumbnail
YAML from the config and create an update hook to remove it.
9f976ec
to
fd1c470
Compare
* | ||
* @Then I( should) see the :selector element with the :attribute attribute like :pattern | ||
*/ | ||
public function elementAssertAttributeLikePattern(string $selector, string $attribute, string $pattern): void { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This does not need to check for the wildcard - it checks if the attribute contains a string.
Please update to
@Then I( should) see the :selector element with a(n) :attribute attribute containing :value
The method then will become elementAssertAttributeContains
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@joshua-salsadigital
the PR looks good!
Please see my inline comments re tests and naming of the image styles.
https://www.drupal.org/project/civictheme/issues/3415665
Checklist before requesting a review
[CS-123] Verb in past tense with dot at the end.
Changed
section about WHY something was done if this was not a normal implementationChanged
focal_point
module incivictheme.info.yml
file.Screenshots