Skip to content

Commit 94b0cc5

Browse files
Fidesnoellarav3n11
authored andcommitted
fix(frontend): apply Sentry styles using a shared CSS file
1 parent 3eddddb commit 94b0cc5

File tree

3 files changed

+19
-35
lines changed

3 files changed

+19
-35
lines changed

frontend-new/.storybook/preview.css

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,5 @@
33
@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@0,300;0,500;0,600;0,700;1,300&display=swap");
44
/*This css is used in the MuiIconsElements story to display the icons.*/
55
@import url("https://fonts.googleapis.com/icon?family=Material+Icons");
6-
7-
/*This css is for styling the sentry feedback ui. It is a copy of the style in the /public/index.html
8-
If you change the style in the index.html, you need to change it here too. */
9-
#sentry-feedback {
10-
--font-family: Inter, sans-serif;
11-
--accent-background: #00FF91;
12-
--accent-foreground: #000000;
13-
--input-placeholder-color: rgba(0, 33, 71, 0.5);
14-
--button-primary-border: none;
15-
--button-border-radius: 32px;
16-
--button-primary-border-radius: 32px;
17-
--form-width: 300px;
18-
}
19-
20-
@media (max-width: 600px) {
21-
#sentry-feedback {
22-
--form-width: 100%;
23-
}
24-
}
6+
/*Sentry feedback widget styles*/
7+
@import "../public/styles/sentry.css";

frontend-new/public/index.html

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
1717
-->
1818
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
19+
<link rel="stylesheet" href="%PUBLIC_URL%/styles/sentry.css" />
1920
<!--
2021
Notice the use of %PUBLIC_URL% in the tags above.
2122
It will be replaced with the URL of the `public` folder during the build.
@@ -122,22 +123,6 @@
122123
.compass-logo {
123124
height: 60px;
124125
}
125-
#sentry-feedback {
126-
--font-family: Inter, sans-serif;
127-
--accent-background: #00FF91;
128-
--accent-foreground: #000000;
129-
--input-placeholder-color: rgba(0, 33, 71, 0.5);
130-
--button-primary-border: none;
131-
--button-border-radius: 32px;
132-
--button-primary-border-radius: 32px;
133-
--form-width: 300px;
134-
}
135-
136-
@media (max-width: 600px) {
137-
#sentry-feedback {
138-
--form-width: 100%;
139-
}
140-
}
141126
</style>
142127
</head>
143128
<body id="body">
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#sentry-feedback {
2+
--font-family: Inter, sans-serif;
3+
--accent-background: #00FF91;
4+
--accent-foreground: #000000;
5+
--input-placeholder-color: rgba(0, 33, 71, 0.5);
6+
--button-primary-border: none;
7+
--button-border-radius: 32px;
8+
--button-primary-border-radius: 32px;
9+
--form-width: 300px;
10+
}
11+
12+
@media (max-width: 600px) {
13+
#sentry-feedback {
14+
--form-width: 100%;
15+
}
16+
}

0 commit comments

Comments
 (0)