carbon-react 153.5.0 → 153.5.1

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.
@@ -9,26 +9,31 @@ const StyledNoteContent = styled.div`
9
9
 
10
10
  ${({
11
11
  hasPreview
12
- }) => css`
13
- div.DraftEditor-root {
14
- min-height: inherit;
15
- }
12
+ }) => hasPreview && css`
13
+ margin-top: var(--spacing200);
14
+ `}
16
15
 
17
- div.DraftEditor-editorContainer,
18
- div.public-DraftEditor-content {
19
- min-height: inherit;
20
- background-color: var(--colorsUtilityYang100);
21
- line-height: 21px;
22
- }
16
+ &:last-of-type:not(:first-of-type) {
17
+ border-top: solid 1px var(--colorsUtilityMajor050);
18
+ }
23
19
 
24
- &:last-of-type:not(:first-of-type) {
25
- border-top: solid 1px var(--colorsUtilityMajor050);
20
+ a:not([data-component="link-preview"]) {
21
+ color: var(--colorsActionMajor500);
22
+
23
+ &:hover {
24
+ cursor: pointer;
25
+ color: var(--colorsActionMajor600);
26
26
  }
27
27
 
28
- ${hasPreview && `
29
- margin-top: var(--spacing200);
30
- `}
31
- `}
28
+ &:focus {
29
+ outline: none;
30
+ text-decoration: none;
31
+ color: var(--colorsActionMajorYin090);
32
+ background-color: var(--colorsSemanticFocus250);
33
+ border-radius: var(--borderRadius025);
34
+ box-shadow: 0 var(--spacing050) 0 0 var(--colorsUtilityYin090);
35
+ }
36
+ }
32
37
  `;
33
38
  const StyledNoteMain = styled.div`
34
39
  display: flex;
@@ -38,6 +38,24 @@ export const StyledWrapper = styled.div`
38
38
  }
39
39
  `}
40
40
  `};
41
+
42
+ a:not([data-component="link-preview"]) {
43
+ color: var(--colorsActionMajor500);
44
+ cursor: pointer;
45
+
46
+ &:hover {
47
+ color: var(--colorsActionMajor600);
48
+ }
49
+
50
+ &:focus {
51
+ outline: none;
52
+ text-decoration: none;
53
+ color: var(--colorsActionMajorYin090);
54
+ background-color: var(--colorsSemanticFocus250);
55
+ border-radius: var(--borderRadius025);
56
+ box-shadow: 0 var(--spacing050) 0 0 var(--colorsUtilityYin090);
57
+ }
58
+ }
41
59
  `;
42
60
  export const StyledEditorToolbarWrapper = styled.div`
43
61
  ${({
@@ -18,26 +18,31 @@ const StyledNoteContent = exports.StyledNoteContent = _styledComponents.default.
18
18
 
19
19
  ${({
20
20
  hasPreview
21
- }) => (0, _styledComponents.css)`
22
- div.DraftEditor-root {
23
- min-height: inherit;
24
- }
21
+ }) => hasPreview && (0, _styledComponents.css)`
22
+ margin-top: var(--spacing200);
23
+ `}
25
24
 
26
- div.DraftEditor-editorContainer,
27
- div.public-DraftEditor-content {
28
- min-height: inherit;
29
- background-color: var(--colorsUtilityYang100);
30
- line-height: 21px;
31
- }
25
+ &:last-of-type:not(:first-of-type) {
26
+ border-top: solid 1px var(--colorsUtilityMajor050);
27
+ }
32
28
 
33
- &:last-of-type:not(:first-of-type) {
34
- border-top: solid 1px var(--colorsUtilityMajor050);
29
+ a:not([data-component="link-preview"]) {
30
+ color: var(--colorsActionMajor500);
31
+
32
+ &:hover {
33
+ cursor: pointer;
34
+ color: var(--colorsActionMajor600);
35
35
  }
36
36
 
37
- ${hasPreview && `
38
- margin-top: var(--spacing200);
39
- `}
40
- `}
37
+ &:focus {
38
+ outline: none;
39
+ text-decoration: none;
40
+ color: var(--colorsActionMajorYin090);
41
+ background-color: var(--colorsSemanticFocus250);
42
+ border-radius: var(--borderRadius025);
43
+ box-shadow: 0 var(--spacing050) 0 0 var(--colorsUtilityYin090);
44
+ }
45
+ }
41
46
  `;
42
47
  const StyledNoteMain = exports.StyledNoteMain = _styledComponents.default.div`
43
48
  display: flex;
@@ -47,6 +47,24 @@ const StyledWrapper = exports.StyledWrapper = _styledComponents.default.div`
47
47
  }
48
48
  `}
49
49
  `};
50
+
51
+ a:not([data-component="link-preview"]) {
52
+ color: var(--colorsActionMajor500);
53
+ cursor: pointer;
54
+
55
+ &:hover {
56
+ color: var(--colorsActionMajor600);
57
+ }
58
+
59
+ &:focus {
60
+ outline: none;
61
+ text-decoration: none;
62
+ color: var(--colorsActionMajorYin090);
63
+ background-color: var(--colorsSemanticFocus250);
64
+ border-radius: var(--borderRadius025);
65
+ box-shadow: 0 var(--spacing050) 0 0 var(--colorsUtilityYin090);
66
+ }
67
+ }
50
68
  `;
51
69
  const StyledEditorToolbarWrapper = exports.StyledEditorToolbarWrapper = _styledComponents.default.div`
52
70
  ${({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "carbon-react",
3
- "version": "153.5.0",
3
+ "version": "153.5.1",
4
4
  "description": "A library of reusable React components for easily building user interfaces.",
5
5
  "files": [
6
6
  "lib",