Skip to content

Commit

Permalink
Encapsulate responsive-ux styles
Browse files Browse the repository at this point in the history
Reverting the change in `feature_css_class` from #10007
  • Loading branch information
Dany Marcoux committed Aug 17, 2020
1 parent 74bd1ba commit ddc46d1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@ $top-navigation-height: 3.5625rem;
$bottom-navigation-height: 3.5rem;
$left-navigation-width: 16rem;

@import 'build-result';
@import 'grid';
@import 'layout';
@import 'navbar';
@import 'sponsors';
@import 'tabs';
body.responsive-ux {
@import 'build-result';
@import 'grid';
@import 'layout';
@import 'navbar';
@import 'sponsors';
@import 'tabs';
}
1 change: 1 addition & 0 deletions src/api/app/helpers/webui/webui_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,7 @@ def feature_enabled?(feature)

def feature_css_class
css_classes = []
css_classes << 'responsive-ux' if feature_enabled?(:responsive_ux)
css_classes << 'notifications-redesign' if feature_enabled?(:notifications_redesign)
css_classes.join(' ')
end
Expand Down

0 comments on commit ddc46d1

Please sign in to comment.