Sha256: 00be0010a183722f0d8a3fcf0095d2f2066d75c10079b3a2aad4465733604666

Contents?: true

Size: 1.56 KB

Versions: 5

Compression:

Stored size: 1.56 KB

Contents

name: Chat entry
description: Entry point for GOV.UK Chat
accessibility_criteria: |
  The heading must:

  - be part of a correct heading structure for a page
  - be semantically represented as a heading
  - convey the heading level
uses_component_wrapper_helper: true
shared_accessibility_criteria:
  - link
examples:
  default:
    data:
  with_custom_href,_heading_and_or_description:
    data:
      href: /chat
      heading_text: Go to GOV.UK Chat
      description_text: Get answers to your business questions
  with_a_different_heading_level:
    description: Chat entry has a `h2` by default, but this can be changed. The heading level does not change any styling.
    data:
      heading_level: 3
  with_a_border_top:
    data:
      border_top: true
  with_a_border_bottom:
    data:
      border_bottom: true
  with_a_border_top_and_a_border_bottom:
    data:
      border_top: true
      border_bottom: true
  with_margin_bottom:
    data:
      margin_bottom: 3
  with_margin_top_until_tablet:
    description: Adds a `.gem-c-chat-entry--margin-top-until-tablet` class that applies `margin-top:35px` on smaller screen sizes (i.e. tablets and below)
    data:
      margin_top_until_tablet: true
  without_ga4_tracking:
    description: |
      Disables GA4 tracking on the component. Tracking is enabled by default. This adds a data module and data-attributes with JSON data. See the [ga4-link-tracker documentation](https://github.com/alphagov/govuk_publishing_components/blob/main/docs/analytics-ga4/ga4-link-tracker.md) for more information.
    data:
      disable_ga4: true

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
govuk_publishing_components-45.9.0 app/views/govuk_publishing_components/components/docs/chat_entry.yml
govuk_publishing_components-45.8.0 app/views/govuk_publishing_components/components/docs/chat_entry.yml
govuk_publishing_components-45.7.0 app/views/govuk_publishing_components/components/docs/chat_entry.yml
govuk_publishing_components-45.6.1 app/views/govuk_publishing_components/components/docs/chat_entry.yml
govuk_publishing_components-45.6.0 app/views/govuk_publishing_components/components/docs/chat_entry.yml