#ClimateEmergency

Progress Deprecated

Open in Storybook

George uses modified Bootstrap .progress bars as level-meter for money on e.g. credit cards or accounts. Here are basic versions for one or more bars:

Loading demo…

Colour

Default colour of a George progress bar is dark blue, but you can assign any .g-bg-* background colour class to a .progress-bar to create different colours:

Loading demo…

Labels

You can add a label to each progress bar. This is done by adding an invisible .g-bg-transparent div to hold the label. Unfortunately, there is no pure CSS solution to move that label into the bar if the space to its right is too small, this has to be done in JavaScript:

Loading demo…

Tooltips

You can assign individual Tooltips to each .progress-bar. To enable tooltips on the empty part, add another fake .g-bg-transparent area.

Loading demo…
html<div class="progress">
  <div
    class="progress-bar"
    role="progressbar"
    style="width: 15%"
    aria-valuenow="15"
    aria-valuemin="0"
    aria-valuemax="100"
    data-toggle="tooltip"
    data-placement="top"
    data-html="true"
    title="I am a tooltip!"
  >
    15%
  </div>
  ... more bars ...
</div>
Rules For Designers
  • Progress label font-size is 12px.
  • Progress bar height is 20px.
  • Border radius is 4px.
  • Default filled progress bar background colour is $color-blue-300 (#135ee2).
  • Default empty progress bar background colour is $color-gray-200 (#e4eaf0). Inset shadow is 0 1px 2px 0.25px, 30% black.
  • Progress bar text colour is $color-white (#ffffff) on dark backgrounds and $color-blue-400 (#0a285c) on light backgrounds.
  • All progress bar segments must have a tooltip explaining their content. For the empty space a tooltip is not mandatory.
  • Paddings left/right in each bar is 8px.