-
-
Notifications
You must be signed in to change notification settings - Fork 0
Fixed fonts and spacing for the intro Banner. #61
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
Conversation
📝 WalkthroughWalkthroughThe updates modify SCSS styling and variable declarations. Banner component styles now use a unified responsive breakpoint variable and streamlined padding logic, with added responsive padding for intro banners. In the base variables, font size and line-height variables no longer use the Changes
Sequence Diagram(s)sequenceDiagram
participant DrupalTheme
participant BlockPreprocess
participant SystemMainBlockPreprocess
DrupalTheme->>BlockPreprocess: drevops_preprocess_block(variables)
BlockPreprocess->>SystemMainBlockPreprocess: _drevops_preprocess_block__system_main_block(variables)
SystemMainBlockPreprocess->>BlockPreprocess: Modify variables if route is user.login or user.pass
BlockPreprocess->>DrupalTheme: Continue block preprocessing
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (4)
🔇 Additional comments (7)
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
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.
Actionable comments posted: 1
📜 Review details
Configuration used: CodeRabbit UI
Review profile: ASSERTIVE
Plan: Lite
📒 Files selected for processing (3)
config/default/block.block.drevops_side_navigation.yml(2 hunks)web/themes/custom/drevops/drevops.theme(2 hunks)web/themes/custom/drevops/includes/system_main_block.inc(1 hunks)
🔇 Additional comments (6)
config/default/block.block.drevops_side_navigation.yml (2)
21-21: LGTM! Proper label display configuration.Setting
label_displayto'0'correctly hides the block label, which is a common practice for navigation blocks.
39-39: Good alignment with theme changes.The expansion of visibility exclusions to include
/user*paths complements the new preprocessing logic being added for user login and password reset routes.web/themes/custom/drevops/drevops.theme (2)
10-10: Proper include integration.The new include statement follows the established pattern and correctly integrates the system main block preprocessing functionality.
35-35: Good preprocessing order.The function call is correctly placed before the existing banner preprocessing, ensuring proper execution order for block modifications.
web/themes/custom/drevops/includes/system_main_block.inc (2)
20-24: LGTM! Proper route checking logic.The route matching logic correctly identifies user login and password reset pages using the appropriate Drupal API.
26-26: Appropriate CSS class application.The CSS class
ct-vertical-spacing--bothis properly added to the block attributes, following Drupal theming conventions.
9e81655 to
97cf18c
Compare
97cf18c to
5868bf0
Compare
Summary by CodeRabbit