# 'tag-banner' class not being removed when navigating away

**URL:** https://meta.discourse.org/t/tag-banner-class-not-being-removed-when-navigating-away/270629
**Category:** UX
**Tags:** tag-banners
**Created:** [January 23, 2023, 9:01pm UTC](https://meta.discourse.org/t/tag-banner-class-not-being-removed-when-navigating-away/270629 "2023-01-23T21:01:34Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![manuel](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/manuel/32/468169_2.png) [@manuel](https://meta.discourse.org/u/manuel)
#### Post date: [January 23, 2023, 9:01pm UTC](https://meta.discourse.org/t/tag-banner-class-not-being-removed-when-navigating-away/270629/1 "2023-01-23T21:01:34Z")

</div>

Working on a setup where I want to adjust the top padding of the main-outlet and saw there’s this declaration on the component:

```plaintext
.tag-banner #main-outlet {
  padding-top: 1.5em;
}

```

The component adds that class `tag-banner` to the body when navigating to a page with tag banners. But the class actually doesn’t get removed when navigating away. So the padding-top declaration stays in effect on all other pages.

I guess it’s a bug that the class doesn’t get removed. But I also wonder if it’s possible to drop the adjustment of the main-outlet and rather adjust spacing on some component element?
