question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support banners/headers

See original GitHub issue

There’s a class of KS macros that we call “banners” or “headers”.

They create a block element across the page warning that the item is (for example) deprecated. See e.g. https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Expression_closures for a nice pile of these things.

At the moment, in Kuma, the fact that a method is deprecated is maintained in two (or more) places: the BCD for the item (under the status key) and the macro call itself. This makes our content hard to maintain.

We would like to maintain this info only in BCD, and have the stumptown-renderer automatically add the relevant banner(s) based on the BCD.

Since stumptown-renderer already gets BCD for each item, it can do this with no changes to stumptown-content. We might anyway choose to represent status more explicitly in the built JSON, via a top-level status property, say. Then there would be a small change to stumptown-content to add this.

Acceptance criteria

  • stumptown-renderer automatically adds “Deprecated”, “Non-standard”, or “Experimental” banners to pages, based on the information from BCD.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
wbambergcommented, Feb 7, 2020

I think it’s still up for discussion exactly how this will look in the JSON (see https://github.com/mdn/stumptown-content/issues/306, where this would get sorted out) but a couple of things:

  • there would be three possible things to indicate: “deprecated”, “experimental”, and “non-standard”. So no separate “obsolete” (BCD doesn’t distinguish “deprecated” and “obsolete” because nobody knows the difference anyway).
  • there would be no reference to Gecko versions, or any versions.
1reaction
peterbecommented, Aug 12, 2020

Now moot.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Header Banner - Dribbble
Discover 26 Header Banner designs on Dribbble. Your resource to discover and connect with designers worldwide.
Read more >
𓆩 𓆪 | Twitter header aesthetic, Twitter header, Bullet journal ...
Jul 16, 2021 - twitter header aesthetic layouts messy tumblr lq low quality core board packs kiki's delivery service cat anime cute japan....
Read more >
Free, customizable professional email header templates - Canva
Create engaging email banners for your online correspondence using our free, fully-customizable email header templates.
Read more >
Create a banner/header but keep the WP menu
Support » Plugin: Elementor Header & Footer Builder » Create a banner/header but keep the WP menu ! Create a banner/header but keep...
Read more >
Header Design - SNO Sites Support
How do we design our header / masthead / banner / flag / logo?” Here's a good question we get a lot. Wondering...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found