Frontmatter
| id | 1238 |
| title | component.Base: getTheme() |
| state | Closed |
| labels | enhancement |
| assignees | tobiu |
| createdAt | Oct 12, 2020, 11:32 AM |
| updatedAt | Oct 12, 2020, 12:27 PM |
| githubUrl | https://github.com/neomjs/neo/issues/1238 |
| author | tobiu |
| commentsCount | 0 |
| parentIssue | null |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| blockedBy | [] |
| blocking | [] |
| closedAt | Oct 12, 2020, 12:27 PM |
A Component should be aware of the closest theme which is applied.
Since we can apply a neo theme to any div node, we should check the Component class array for "neo-theme-" matches. If there is no entry, walk up the vdom tree and check each node if it has a theme css rule.