@financial-times/dotcom-ui-header 13.0.0 → 13.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@financial-times/dotcom-ui-header",
3
- "version": "13.0.0",
3
+ "version": "13.1.0",
4
4
  "description": "",
5
5
  "browser": "browser.js",
6
6
  "main": "component.js",
@@ -21,7 +21,7 @@
21
21
  "author": "",
22
22
  "license": "MIT",
23
23
  "dependencies": {
24
- "@financial-times/dotcom-types-navigation": "^13.0.0"
24
+ "@financial-times/dotcom-types-navigation": "^13.1.0"
25
25
  },
26
26
  "devDependencies": {
27
27
  "@financial-times/logo-images": "^1.10.1",
@@ -1,11 +1,16 @@
1
1
  @import '@financial-times/o3-button/css/core.css';
2
- .ft-header__ask-ft-button {
2
+ // The o3-button class selector has higher specificity due to its default styling rules,
3
+ // which can override custom styles applied to the button. To ensure our styles take precedence,
4
+ // we use an ID selector combined with a class selector to increase specificity and avoid conflicts.
5
+ #ask-ft-button-drawer.ft-header__ask-ft-button,
6
+ #ask-ft-button-header.ft-header__ask-ft-button,
7
+ #ask-ft-button-sticky.ft-header__ask-ft-button {
3
8
  display: flex;
4
9
  align-items: center;
5
10
  white-space: nowrap;
6
11
  }
7
12
 
8
- .ft-header__ask-ft-button--drawer {
13
+ #ask-ft-button-drawer.ft-header__ask-ft-button--drawer {
9
14
  // Same as .o-header__drawer-search
10
15
  @include oGridRespondTo('M') {
11
16
  display: none;
@@ -14,12 +19,13 @@
14
19
  justify-content: center;
15
20
  }
16
21
 
17
- .ft-header__ask-ft-button--drawer + .o-header__drawer-menu {
22
+ #ask-ft-button-drawer.ft-header__ask-ft-button--drawer + .o-header__drawer-menu {
18
23
  margin-top: $_o-header-drawer-padding-y;
19
24
  }
20
25
 
21
26
 
22
- .ft-header__ask-ft-button--top {
27
+ #ask-ft-button-header.ft-header__ask-ft-button--top,
28
+ #ask-ft-button-sticky.ft-header__ask-ft-button--top {
23
29
  @include oGridRespondTo($until: 'M') {
24
30
  display: none;
25
31
  }