Skip to content
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

Adjust condition check #750

Conversation

pookmish
Copy link
Contributor

@pookmish pookmish commented Dec 5, 2023

NOT READY FOR REVIEW

  • (Edit the above to reflect status)

Summary

  • TL;DR - what's this PR for?

Review By (Date)

  • When does this need to be reviewed by?

Criticality

  • How critical is this PR on a 1-10 scale? Also see Severity Assessment.
  • E.g., it affects one site, or every site and product?

Urgency

  • How urgent is this? (Normal, High)

Review Tasks

Setup tasks and/or behavior to test

  1. Check out this branch
  2. Rebuild Cache and import config drush cr ; drush ci
  3. Navigate to...
  4. Verify...

Site Configuration Sync

  • Is there a config:export in this PR that changes the config sync directory?

Front End Validation

Backend / Functional Validation

Code

  • Are the naming conventions following our standards?
  • Does the code have sufficient inline comments?
  • Is there anything in this code that would be hidden or hard to discover through the UI?
  • Are there any code smells?
  • Are tests provided? eg (unit, behat, or codeception)

Code security

General

  • Is there anything included in this PR that is not related to the problem it is trying to solve?
  • Is the approach to the problem appropriate?

Affected Projects or Products

  • Does this PR impact any particular projects, products, or modules?

Associated Issues and/or People

  • JIRA ticket(s)
  • Other PRs
  • Any other contextual information that might be helpful (e.g., description of a bug that this PR fixes, new functionality that it adds, etc.)
  • Anyone who should be notified? (@mention them here)

Resources

@pookmish
Copy link
Contributor Author

pookmish commented Dec 5, 2023

@jenbreese the condition you used was a good start. But the label_display is normally a zero (0). So what I did here checks if the label_display is visible before adding the attribute.

@pookmish pookmish force-pushed the D8CORE-7055--hide-mainnav-block-title branch from 8e07d8e to 696234b Compare December 5, 2023 16:52
@pookmish pookmish force-pushed the D8CORE-7055--hide-mainnav-block-title-2 branch from d408535 to 21e9eec Compare December 5, 2023 16:53
Copy link
Contributor

@jenbreese jenbreese left a comment

Choose a reason for hiding this comment

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

@pookmish I was looking and you added this use Drupal\Core\Block\BlockPluginInterface; , which gave you access to the BLOCK_LABEL_VISIBLE right? And you also reordered those use statements.

It is working the way I want. I listened to it with VoiceOver and it no longer reads that H2.

@pookmish
Copy link
Contributor Author

pookmish commented Dec 5, 2023

Correct. the use statement gives access to BLOCK_LABEL_VISIBLE which is a constant that is = visible

@pookmish pookmish merged commit cb331b4 into D8CORE-7055--hide-mainnav-block-title Dec 5, 2023
3 of 4 checks passed
@pookmish pookmish deleted the D8CORE-7055--hide-mainnav-block-title-2 branch December 5, 2023 18:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants