name: "Docked Form Footer" description: "A fixed footer component that docks to the bottom of the viewport, typically containing form action buttons like Save and Cancel. It remains visible as the user scrolls through long forms." category: "Layout" slds_classes: root: "slds-docked-form-footer" elements: [] modifiers: [] states: [] variants: - name: "Base" description: "Standard docked footer with centered content" classes: ["slds-docked-form-footer"] usage_context: "Default footer for long forms that need persistent action buttons" differences: "Fixed to bottom of viewport with shadow elevation" lightning_component: name: "" url: "https://developer.salesforce.com/docs/component-library/overview/components" mapping_notes: "No direct Lightning Base Component - implement with custom footer and CSS positioning" accessibility: keyboard_support: - "Tab to navigate to footer buttons" - "Enter or Space to activate buttons" screen_reader: - "Footer landmark announced if using footer element" - "Button labels announced clearly" - "Action sequence communicated" aria_attributes: - "role='contentinfo' if using div instead of footer" - "Buttons should have clear aria-label if needed" usage_guidelines: when_to_use: - "For long forms that extend beyond viewport height" - "When form actions need to remain always visible" - "For edit or create flows with Save/Cancel actions" - "In modal or page contexts with critical actions" when_not_to_use: - "For short forms that fit in viewport" - "When inline form actions are sufficient" - "In contexts where fixed positioning causes issues" - "On small screens where footer takes too much space" best_practices: - "Keep action buttons clearly labeled and visible" - "Place primary action on the right (e.g., Save)" - "Include Cancel or secondary action on the left" - "Ensure footer doesn't obscure important content" - "Consider mobile viewport height limitations" - "Provide adequate padding around buttons" common_mistakes: - "Overcrowding footer with too many actions" - "Poor color contrast on footer background" - "Forgetting to account for footer height in page layout" - "Not handling mobile viewport properly" - "Missing keyboard navigation support" code_examples: - title: "Basic Docked Form Footer" code: |
description: "Simple docked footer with Save and Cancel buttons" - title: "Docked Footer with Multiple Actions" code: | description: "Docked footer with multiple action options" - title: "Docked Footer in Form Context" code: |