Yes, using `position: absolute` in globally accessible components carries significantly higher security risks compared to namespaced components.
**Globally Accessible Components (Higher Risk):**
- **Increased Exposure**: Globally accessible components are exposed outside the namespace and can be used on shared pages, increasing the likelihood of being flagged as a clickjacking risk
- **Broader Attack Surface**: These components can be accessed and potentially exploited by external entities
- **Shared Page Vulnerabilities**: When used on shared pages, absolute positioning can interfere with other components or applications
- **Recommendation**: Avoid using `position: absolute` if the component is globally accessible (`isExposed` is set to `true`). Instead, use `position: relative` to mitigate security risks like clickjacking or interference with other components
**Namespaced Components (Lower Risk):**
- **Limited Exposure**: Namespaced components are limited to pages owned by the namespace, reducing the exposure and associated risks
- **Controlled Environment**: Usage is restricted to specific, controlled scenarios within the namespace
- **Acceptable Conditions**: `Position: absolute` may be acceptable if:
- The component is not exposed outside of its namespace
- Its visibility is limited to pages owned by the namespace (e.g., a progress bar used only on specific pages within the namespace)
**Security Implications:**
- **Namespace Isolation**: Components not exposed outside their namespace benefit from better isolation and reduced risk
- **Controlled Usage**: Limited visibility to namespace-owned pages provides better security control
- **Risk Mitigation**: Setting `isExposed` to `false` limits accessibility and reduces vulnerabilities, though it doesn't fully resolve all positioning-related issues
**Best Practices:**
- For globally accessible components: Always use relative positioning
- For namespaced components: Absolute positioning may be acceptable under strict conditions
- Always ensure components don't interfere with shared pages or other applications
- Document the specific use case and scope when using absolute positioning in namespaced components