Class: Primer::OpenProject::AvatarStack

Inherits:
Beta::AvatarStack show all
Defined in:
app/components/primer/open_project/avatar_stack.rb

Overview

OpenProject-specific AvatarStack that extends Primer::Beta::AvatarStack to support avatar fallbacks with initials.

Uses a different slot name (avatar_with_fallbacks) to avoid conflicts with the parent’s avatars slot.

Constant Summary

Constants inherited from Beta::AvatarStack

Beta::AvatarStack::ALIGN_DEFAULT, Beta::AvatarStack::ALIGN_OPTIONS, Beta::AvatarStack::BODY_TAG_OPTIONS, Beta::AvatarStack::DEFAULT_BODY_TAG, Beta::AvatarStack::DEFAULT_TAG, Beta::AvatarStack::TAG_OPTIONS

Constants inherited from Component

Component::INVALID_ARIA_LABEL_TAGS

Constants included from Status::Dsl

Status::Dsl::STATUSES

Constants included from ViewHelper

ViewHelper::HELPERS

Constants included from TestSelectorHelper

TestSelectorHelper::TEST_SELECTOR_TAG

Constants included from FetchOrFallbackHelper

FetchOrFallbackHelper::InvalidValueError

Constants included from AttributesHelper

AttributesHelper::PLURAL_ARIA_ATTRIBUTES, AttributesHelper::PLURAL_DATA_ATTRIBUTES

Instance Method Summary collapse

Methods inherited from Beta::AvatarStack

#before_render, #body_component, #initialize, #render?

Methods inherited from Component

deprecated?, generate_id

Methods included from JoinStyleArgumentsHelper

#join_style_arguments

Methods included from TestSelectorHelper

#add_test_selector

Methods included from FetchOrFallbackHelper

#fetch_or_fallback, #fetch_or_fallback_boolean, #silence_deprecations?

Methods included from ClassNameHelper

#class_names

Methods included from AttributesHelper

#aria, #data, #extract_data, #merge_aria, #merge_data, #merge_prefixed_attribute_hashes

Methods included from ExperimentalSlotHelpers

included

Methods included from ExperimentalRenderHelpers

included

Constructor Details

This class inherits a constructor from Primer::Beta::AvatarStack

Instance Method Details

#avatarsObject

Alias avatar_with_fallbacks as avatars for use in the template



18
19
20
# File 'app/components/primer/open_project/avatar_stack.rb', line 18

def avatars
  avatar_with_fallbacks
end