Skip to content
Snippets Groups Projects

Show category descriptions in UI (Add description to category output).

This change adds a visually hidden description label for screen reader users and a tooltip for other users, showing the category descriptions.

Closes #3293907

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
285 295 * {@inheritdoc}
286 296 */
287 297 public function getCategories(): array {
288 return $this->getVocabularyData('module_categories');
298 $temp = $this->getVocabularyData('module_categories', TRUE);
  • Why not the one-liner as it was before?

    Suggested change
    298 $temp = $this->getVocabularyData('module_categories', TRUE);
    299 return $temp;
    298 return $this->getVocabularyData('module_categories', TRUE);
  • I think I added the variable to aid adding debugging statements, and forgot to remove after. I'll put it back the way it was. It definitely wasn't intended to be a permanent change.

  • Please register or sign in to reply
  • Fran Garcia-Linares resolved all threads

    resolved all threads

  • Please register or sign in to reply
    Loading