Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 11 additions & 21 deletions test/components/previews/pathogen/tooltip_preview.rb
Original file line number Diff line number Diff line change
@@ -1,38 +1,28 @@
# frozen_string_literal: true

module Pathogen
# ViewComponent preview for demonstrating Pathogen::Tooltip usage
# Showcases placement options, accessibility features, animations, and browser compatibility
class TooltipPreview < ViewComponent::Preview
include Pathogen::ViewHelper

# @!group Pathogen Tooltip Component
# @!group Pathogen Tooltip

# @label Basic Usage & Getting Started
# Simple examples showing all four placement options and basic tooltip functionality
def basic_usage; end
# @label Overview
# Placement reference, sizing behaviour, and specimen toolbar examples
def overview; end

# @label Accessibility & Keyboard Navigation
# Demonstrates accessibility features, ARIA patterns, hover/focus triggers, and keyboard support
def accessibility; end
# @label In context
# Icon-only actions, collapsed navigation, and grid row utilities
def in_context; end

# @label Link Component Integration
# Shows integration with Pathogen::Link component in various real-world contexts
def link_integration; end
# @label Accessibility patterns
# Hover and focus triggers, ARIA wiring, and keyboard navigation
def accessibility; end

# @label Visual Test: Click-through after hide
# @label Visual test: Click-through after hide
# Repro for "tooltip hides but still blocks clicks" issues.
# After the tooltip closes, the button underneath should be clickable immediately.
def click_through_after_hide; end

# @label Advanced Features & Edge Cases
# Demonstrates long text handling, max-width constraint, animations, and edge cases
def advanced_features; end

# @label Browser Compatibility
# Information about CSS anchor positioning support and fallback behavior
def browser_compatibility; end

# @!endgroup
end
end
Loading