Verified Commit 54c4637e authored by Théodore Biadala's avatar Théodore Biadala
Browse files

Issue #3484600 by anjali rathod, plopesc, finnsky, lauriii, m4olivei, ckrina,...

Issue #3484600 by anjali rathod, plopesc, finnsky, lauriii, m4olivei, ckrina, berdir, smustgrave, catch: Show entity information on the Top Bar
parent 873f84fc
Loading
Loading
Loading
Loading
Loading
+27 −0
Original line number Diff line number Diff line
# This is so your IDE knows about the syntax for fixes and autocomplete.
$schema: https://git.drupalcode.org/project/drupal/-/raw/HEAD/core/assets/schemas/v1/metadata.schema.json

# The human readable name.
name: Badge

# Status can be: "experimental", "stable", "deprecated", "obsolete".
status: experimental

# Schema for the props. We support www.json-schema.org. Learn more about the
# syntax there.
props:
  # Props are always an object with keys. Each key is a variable in your
  # component template.
  type: object

  properties:
    status:
      type: string
      default: info
      enum:
        - info
        - success
slots:
  label:
    type: string
    description: Label text
+24 −0
Original line number Diff line number Diff line
/*
 * DO NOT EDIT THIS FILE.
 * See the following change record for more information,
 * https://www.drupal.org/node/3084859
 * @preserve
 */
/* cspell:ignore csvg cpath wght */
/**
 * @file
 * Toolbar badge styles.
 */
.toolbar-badge {
  margin-top: 0.1875rem;
  padding: var(--admin-toolbar-space-4) var(--admin-toolbar-space-8);
  border-radius: 1rem;
  background-color: var(--admin-toolbar-color-gray-100);
  font-size: var(--admin-toolbar-font-size-label-sm);
  line-height: var(--admin-toolbar-line-height-label-sm);
  font-variation-settings: "wght" 700;
}
.toolbar-badge--success {
  color: var(--admin-toolbar-color-green-600);
  background-color: var(--admin-toolbar-color-green-050);
}
+20 −0
Original line number Diff line number Diff line
/* cspell:ignore csvg cpath wght */
/**
 * @file
 * Toolbar badge styles.
 */

.toolbar-badge {
  margin-top: 3px;
  padding: var(--admin-toolbar-space-4) var(--admin-toolbar-space-8);
  border-radius: 1rem;
  background-color: var(--admin-toolbar-color-gray-100);
  font-size: var(--admin-toolbar-font-size-label-sm);
  line-height: var(--admin-toolbar-line-height-label-sm);
  font-variation-settings: "wght" 700;
}

.toolbar-badge--success {
  color: var(--admin-toolbar-color-green-600);
  background-color: var(--admin-toolbar-color-green-050);
}
+5 −0
Original line number Diff line number Diff line
<div{{ attributes.addClass('toolbar-badge', 'toolbar-badge--' ~ status|default('info')) }}>
  {% block label %}
    {{ label }}
  {% endblock %}
</div>
+1 −0
Original line number Diff line number Diff line
<svg fill="none" height="12" viewBox="0 0 12 12" width="12" xmlns="http://www.w3.org/2000/svg"><path clip-rule="evenodd" d="m2 2.5c0 .00062.00009.00292.00153.00765.00169.00557.00588.01658.01601.03307.02122.03457.0645.08654.14558.15044.16509.13011.43496.26914.81301.39516.75088.25029 1.82002.41368 3.02387.41368 1.20386 0 2.27299-.16339 3.02387-.41368.37805-.12602.64792-.26505.81301-.39516.08108-.0639.12436-.11587.14558-.15044.01013-.01649.01431-.0275.01601-.03307.00146-.00479.00153-.00695.00153-.00754 0-.00003 0 .00002 0 0 0-.00036 0-.00258-.00153-.00776-.0017-.00557-.00588-.01658-.01601-.03307-.02122-.03457-.0645-.08654-.14558-.15044-.16509-.13011-.43496-.26914-.81301-.39516-.75088-.25029-1.82001-.41368-3.02387-.41368-1.20385 0-2.27299.16339-3.02387.41368-.37805.12602-.64792.26505-.81301.39516-.08108.0639-.12436.11587-.14558.15044-.01013.01649-.01432.0275-.01601.03307-.00154.00504-.00153.00721-.00153.00765zm8 1.2633c-.20061.10259-.42333.19284-.65991.2717-.8778.2926-2.05866.465-3.34009.465s-2.46229-.1724-3.34009-.465c-.23658-.07886-.4593-.16911-.65991-.2717v2.2367l.00008.00078c.0001.00065.00037.00219.00113.00474.0015.00503.00535.01547.01486.03134.01989.03316.06113.08421.13994.14763.16054.12919.42904.27147.82012.40183.77887.25962 1.86698.41368 3.02387.41368s2.245-.15406 3.02387-.41368c.39108-.13036.65958-.27264.82012-.40183.07881-.06342.12005-.11447.13994-.14763.00951-.01587.01336-.02631.01486-.03134.00047-.00159.00076-.00279.00093-.00362.0001-.00051.00016-.00088.0002-.00112l.00007-.00065zm1-1.2633c0-.42597-.2594-.75221-.5441-.97657-.2904-.22881-.67952-.413-1.11581-.558432-.8778-.2926-2.05866-.464998-3.34009-.464998s-2.46229.172398-3.34009.464998c-.43629.145432-.82543.329622-1.11576.558432-.2847.22436-.54415.5506-.54415.97657v7c0 .41262.2462.7359.52907.9636.28749.2313.678.4205 1.13084.5714.90895.303 2.11003.465 3.34009.465s2.43114-.162 3.34009-.465c.45283-.1509.84331-.3401 1.13081-.5714.2829-.2277.5291-.55098.5291-.9636zm-1 4.76299c-.19854.10174-.42052.19222-.65991.27201-.90895.30299-2.11003.465-3.34009.465s-2.43114-.16201-3.34009-.465c-.23939-.07979-.46137-.17027-.65991-.27201v2.23701l.00008.00078c.0001.00065.00037.00219.00113.00474.0015.00503.00535.01547.01486.03134.01989.03316.06113.08421.13994.14763.16054.12919.42904.27147.82012.40181.77887.2596 1.86698.4137 3.02387.4137s2.245-.1541 3.02387-.4137c.39108-.13034.65958-.27262.82012-.40181.07881-.06342.12005-.11447.13994-.14763.00951-.01587.01336-.02631.01486-.03134.00076-.00255.00103-.00409.00113-.00474l.00007-.00065z" fill="#000" fill-rule="evenodd"/></svg>
 No newline at end of file
Loading