You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The new SVG components use dashed attribute names such as stroke-width, clip-path, and fill-opacity. In React/TSX these should usually be camelCased, otherwise the attributes may be ignored, trigger warnings, or fail type-checking depending on the setup.
The newly added icon components accept color and ...props, but the rendered <svg> elements do not forward those props or use the color value. This can prevent consumers from applying className, accessibility attributes, handlers, sizing overrides, or theme-driven coloring.
The new error text styles introduce a hardcoded RGBA color instead of using an existing theme token. This is worth validating against alternate themes and future design-token changes, since these messages may not stay visually consistent outside the default palette.
Convert the SVG attributes to React's camelCase equivalents. clip-path and fill-opacity are invalid JSX prop names, so the clipping and transparency can fail when this icon renders.
Why: This correctly identifies multiple JSX-incompatible SVG attributes in CautionIcon, including clip-path and fill-opacity, and the improved_code matches the intended fix. It can prevent invalid DOM property warnings and potential issues with clipping/transparency, so it has moderate impact.
Medium
Fix invalid SVG prop
Replace the kebab-case SVG prop with the JSX-safe camelCase form. Using stroke-width in React can be ignored or trigger invalid DOM property warnings, which would leave the icon stroke rendering incorrectly.
Why: The suggestion is accurate: stroke-width should be strokeWidth in React JSX for the AccessRestrictedIcon SVG. This is a real rendering/console-warning issue, but it is limited in scope to a single icon prop.
Please resolve the issues from sonar cloud in new icons @fahad-aot
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
User description
📝 Pull Request Summary
Description:
styles added for the error screens
Related Jira Ticket:
https://aottech.atlassian.net/browse/FWF-6183
Type of Change:
🧩 Microfrontends Affected
Please select all microfrontends or modules that are part of this change:
Details (if Others selected):
🧠 Summary of Changes
🧪 Testing Details
Testing Performed:
Screenshots (if applicable):
✅ Checklist
👥 Reviewer Notes
PR Type
Enhancement
Description
Add AI builder error-state icons
Style URL error message layouts
Style API error message text
Add shared typography color tokens
Diagram Walkthrough
File Walkthrough
index.tsx
Add reusable icons for error screensforms-flow-components/src/components/SvgIcons/index.tsx
SmallSearchIconinto multiline JSXAccessRestrictedIconSVG componentCautionIconSVG component_aiFormBuilder.scss
Add AI builder error screen stylingforms-flow-theme/scss/v8-scss/_aiFormBuilder.scss
$font-weight-mediumtheme variable$gray-darkest-90text color token__guide-panel-url-errorcontainer layout