Sha256: e313ebf67b38c05d82eaa744538ef2ac045556ce591f6ae1574d519f1aa134b2

Contents?: true

Size: 859 Bytes

Versions: 3

Compression:

Stored size: 859 Bytes

Contents

@import "govuk_publishing_components/individual_component_support";

.gem-c-chart {
  // slight hack to hide the table automatically added by the charts JS
  // not needed as we already output the table manually in the component
  svg + div:has(table) {
    display: none;
  }

  .google-visualization-tooltip {
    background-color: govuk-colour("black");
    box-shadow: none;
    border: 0;

    span {
      color: govuk-colour("white");
      @include govuk-font($size: 16, $weight: bold);
    }
  }
}

.gem-c-chart__table-wrapper {
  overflow: auto;
}

.gem-c-chart__table {
  margin-top: govuk-spacing(3);

  .govuk-table {
    margin: 0;
  }

  .govuk-table .govuk-table__header {
    text-align: center;
  }

  .govuk-table .govuk-table__cell {
    text-align: center;
  }
}

.gem-c-chart__accessibility-message {
  @include govuk-visually-hidden;
}

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
govuk_publishing_components-44.4.2 app/assets/stylesheets/govuk_publishing_components/components/_chart.scss
govuk_publishing_components-44.4.1 app/assets/stylesheets/govuk_publishing_components/components/_chart.scss
govuk_publishing_components-44.4.0 app/assets/stylesheets/govuk_publishing_components/components/_chart.scss