Skip to content

Feature: Add document link option to BlockCTA - #922

Open
sfimbres wants to merge 1 commit into
mainfrom
feature/add-document-option-to-blockcta
Open

sfimbres wants to merge 1 commit into
mainfrom
feature/add-document-option-to-blockcta

Conversation

@sfimbres

@sfimbres sfimbres commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

Checklist

  • Include a description of your pull request and instructions for the reviewer to verify your work.
  • Link to the issue if this PR is issue-specific.
  • Create/update the corresponding story if this includes a UI component.
  • Create/update documentation. If not included, tell us why.
  • List the environments / browsers in which you tested your changes.
  • Tests, linting, or other required checks are passing.
  • PR has an informative and human-readable title
    • PR titles are used to generate the change log in releases; good ones make that easier to scan.
    • PRs will be broadly categorized in the change log, but for even easier scanning, consider prefixing with a component name or other useful categorization, e.g., "BaseButton: fix layout bug", or "Storybook: Update dependencies".
  • PR has been tagged with a SemVer label and a general category label, or skip-changelog.
    • These tags are used to do the aforementioned broad categorization in the change log and determine what the next release's version number should be.
    • Release Drafter will attempt to do the category labeling for you! Please double-check its work.

Description

Partially solves https://github.com/nasa-jpl/www/issues/1055

This PR supports adding a document link to the BlockCTA. When the document link is provided, the IconDownload is added to the CTABlock button. The linking behavior mimics the RelatedLinks block for the document variant.

This PR also introduced a new story, Document, for the document case.

Instructions to test

  1. Pull this branch
  2. Run make vue-storybook
  3. Navigate to http://localhost:6006/?path=/story/components-blocks-blockcta--base-story
  4. Verify all 3 stories look good
  • base story
  • external link
  • document

Tested in the following environments/browsers:

Operating System

  • macOS
  • iOS
  • iPadOS
  • Windows

Browser

  • Chrome
  • Firefox ESR
  • Firefox
  • Safari
  • Edge

@sfimbres sfimbres changed the title Feature: Add document to BlockCTA Feature: Add document link option to BlockCTA Oct 23, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant