diff --git a/.github/workflows/platform-content-sync.yml b/.github/workflows/platform-content-sync.yml new file mode 100644 index 00000000000..ce6f46d90f3 --- /dev/null +++ b/.github/workflows/platform-content-sync.yml @@ -0,0 +1,24 @@ +name: Sync content with platform + +on: + pull_request: + types: + - closed + paths: + - '**.mdx' + +jobs: + if_merged: + if: github.event.pull_request.merged == true + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + with: + repository: carbon-design-system/carbon-platform + ref: main + - name: Create issue on platform repo + run: | + gh issue create --title "[Content sync]: carbon-website PR ${{ github.event.number }}" --label "role: dev 🤖" --label "service: web-app 🌎" --body 'The following pull request on carbon-website was just merged. It contains .mdx content changes that may need synced to platform. + - https://www.github.com/carbon-design-system/carbon-website/pull/${{ github.event.number }}' + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/src/pages/components/accordion/usage.mdx b/src/pages/components/accordion/usage.mdx index 68d059a0119..7e2a6e17f3c 100755 --- a/src/pages/components/accordion/usage.mdx +++ b/src/pages/components/accordion/usage.mdx @@ -55,7 +55,8 @@ extra click; instead use a full scrolling page with normal headers. id: 'accordion', label: 'Accordion', }, - ]}> + ]} +> + }} + > {`

The accordion component delivers large amounts of content in a small space through progressive disclosure. The user gets key details about the underlying content and can choose to expand that content within the constraints of the accordion. Accordions work especially well on mobile interfaces or whenever vertical space is at a premium.