@npm_leadtech/legal-lib-components 7.53.4 → 7.54.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.
@@ -93,10 +93,12 @@ export const CardPaneStyled = styled.div `
93
93
 
94
94
  &--active {
95
95
  color: var(--primary-main);
96
+ font-weight: 700;
96
97
  }
97
98
 
98
99
  &--inactive {
99
100
  color: var(--error-main);
101
+ font-weight: 700;
100
102
  }
101
103
  }
102
104
 
@@ -106,16 +108,10 @@ export const CardPaneStyled = styled.div `
106
108
  }
107
109
  .marker {
108
110
  display: inline-block;
109
- margin-left: -10px;
110
- @-moz-document url-prefix() {
111
- margin-left: 0px;
112
- }
113
- @media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
114
- margin-left: 0px;
115
- }
111
+ margin-left: 0px;
116
112
  }
117
113
  .position {
118
- margin-left: 2px;
114
+ margin-left: 0px;
119
115
  @media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
120
116
  margin-left: 15px;
121
117
  }
@@ -94,10 +94,12 @@ export const CardPaneStyled = styled.div`
94
94
 
95
95
  &--active {
96
96
  color: var(--primary-main);
97
+ font-weight: 700;
97
98
  }
98
99
 
99
100
  &--inactive {
100
101
  color: var(--error-main);
102
+ font-weight: 700;
101
103
  }
102
104
  }
103
105
 
@@ -107,16 +109,10 @@ export const CardPaneStyled = styled.div`
107
109
  }
108
110
  .marker {
109
111
  display: inline-block;
110
- margin-left: -10px;
111
- @-moz-document url-prefix() {
112
- margin-left: 0px;
113
- }
114
- @media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
115
- margin-left: 0px;
116
- }
112
+ margin-left: 0px;
117
113
  }
118
114
  .position {
119
- margin-left: 2px;
115
+ margin-left: 0px;
120
116
  @media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
121
117
  margin-left: 15px;
122
118
  }
@@ -9,7 +9,7 @@ const CardPaneInfo = ({ dataQA, description, subdescription, id, title, handleCl
9
9
  else if (description === 'Inactive') {
10
10
  descriptionClass = 'pane--description--inactive';
11
11
  }
12
- return (_jsxs("div", { className: 'pane-wrapper', children: [paneTitle, _jsx("div", { "data-testid": 'description-div', className: descriptionClass, children: _jsx("li", { className: 'position', children: _jsx("div", { className: 'marker', children: description }) }) })] }, id));
12
+ return (_jsxs("div", { className: 'pane-wrapper', children: [paneTitle, _jsx("div", { "data-testid": 'description-div', className: descriptionClass, children: _jsx("div", { className: 'position', children: _jsx("div", { className: 'marker', children: description }) }) })] }, id));
13
13
  }
14
14
  return (_jsxs("div", { className: 'pane-wrapper', children: [paneTitle, _jsxs("div", { className: 'pane--description', children: [description, subdescription !== undefined && _jsx("span", { className: 'pane--description--subdescription', children: subdescription })] })] }, id));
15
15
  };
@@ -25,9 +25,9 @@ const CardPaneInfo: FC<CardPaneInfoProps> = ({ dataQA, description, subdescripti
25
25
  <div key={id} className='pane-wrapper'>
26
26
  {paneTitle}
27
27
  <div data-testid='description-div' className={descriptionClass}>
28
- <li className='position'>
28
+ <div className='position'>
29
29
  <div className='marker'>{description}</div>
30
- </li>
30
+ </div>
31
31
  </div>
32
32
  </div>
33
33
  )
@@ -1,6 +1,5 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { JumbotronStaticStyled } from './JumbotronStatic.styled';
3
- export const JumbotronStatic = ({ title, locale }) => {
4
- const shorterTitle = locale?.includes('DE') ? 'shorter-text' : '';
5
- return (_jsx(JumbotronStaticStyled, { className: 'jumbotron--static', children: _jsx("h1", { className: `${shorterTitle} serif --super-hero`, children: title }) }));
3
+ export const JumbotronStatic = ({ title }) => {
4
+ return (_jsx(JumbotronStaticStyled, { className: 'jumbotron--static', children: _jsx("h1", { className: 'serif --super-hero', children: title }) }));
6
5
  };
@@ -4,10 +4,4 @@ export const JumbotronStaticStyled = styled.section `
4
4
  margin: 0 auto;
5
5
  background-color: var(--primary-main-light-6);
6
6
  padding: 2.5rem 1rem 4rem;
7
-
8
- .shorter-text.serif {
9
- &.--super-hero {
10
- font-size: 1.75rem;
11
- }
12
- }
13
7
  `;
@@ -5,10 +5,4 @@ export const JumbotronStaticStyled = styled.section`
5
5
  margin: 0 auto;
6
6
  background-color: var(--primary-main-light-6);
7
7
  padding: 2.5rem 1rem 4rem;
8
-
9
- .shorter-text.serif {
10
- &.--super-hero {
11
- font-size: 1.75rem;
12
- }
13
- }
14
8
  `
@@ -3,12 +3,10 @@ import React, { type FC } from 'react'
3
3
  import { type JumbotronStaticProps } from './JumbotronStaticProps.types'
4
4
  import { JumbotronStaticStyled } from './JumbotronStatic.styled'
5
5
 
6
- export const JumbotronStatic: FC<JumbotronStaticProps> = ({ title, locale }) => {
7
- const shorterTitle = locale?.includes('DE') ? 'shorter-text' : ''
8
-
6
+ export const JumbotronStatic: FC<JumbotronStaticProps> = ({ title }) => {
9
7
  return (
10
8
  <JumbotronStaticStyled className={'jumbotron--static'}>
11
- <h1 className={`${shorterTitle} serif --super-hero`}>{title}</h1>
9
+ <h1 className='serif --super-hero'>{title}</h1>
12
10
  </JumbotronStaticStyled>
13
11
  )
14
12
  }
@@ -1,4 +1,3 @@
1
1
  export interface JumbotronStaticProps {
2
2
  title: string;
3
- locale?: string;
4
3
  }
@@ -1,4 +1,3 @@
1
1
  export interface JumbotronStaticProps {
2
2
  title: string
3
- locale?: string
4
3
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@npm_leadtech/legal-lib-components",
3
- "version": "7.53.4",
3
+ "version": "7.54.0",
4
4
  "license": "ISC",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",