-
-
Notifications
You must be signed in to change notification settings - Fork 924
Closed
Labels
cssEnhancements/issues with css propertiesEnhancements/issues with css propertiesenhancementNew feature or requestNew feature or requestlistsIssues with <ol>, <ul>, and <li>Issues with <ol>, <ul>, and <li>
Description
Describe your feature request
We currently have an issue with mis-aligned list-item prefixes that would require me to style them. Here's an example of the issue in case I've missed something :)
I've noticed that ::before and ::after pseudo elements don't appear to do apply any styles at all when mapped.
Additional context
the style property of our Html.fromDom widget:
style: {
'body': Style(padding: EdgeInsets.zero, margin: padding),
'.banner': Style(display: Display.NONE),
'tbody > :first-child': Style.fromTextStyle(
CustomTheme.of(context).textTheme.headlineMedium,
),
'td': Style.fromTextStyle(CustomTheme.of(context).textTheme.bodyLarge).copyWith(
padding: const EdgeInsets.symmetric(horizontal: Spacing.l),
width: tableCellMaxWidth,
display: Display.INLINE_BLOCK,
verticalAlign: VerticalAlign.SUPER,
textAlign: TextAlign.start,
alignment: Alignment.topLeft,
),
'table img': Style(
padding: const EdgeInsets.all(Spacing.s),
display: Display.INLINE,
),
'th': Style.fromTextStyle(CustomTheme.of(context).textTheme.headlineMedium).copyWith(
padding: const EdgeInsets.all(Spacing.l),
width: tableCellMaxWidth,
display: Display.INLINE_BLOCK,
verticalAlign: VerticalAlign.SUPER,
textAlign: TextAlign.start,
alignment: Alignment.topCenter,
),
'p': Style.fromTextStyle(CustomTheme.of(context).textTheme.bodyLarge),
'a': Style.fromTextStyle(CustomTheme.of(context).textTheme.bodyLargeLink),
'h1': Style.fromTextStyle(CustomTheme.of(context).textTheme.headlineLarge),
'h2': Style.fromTextStyle(CustomTheme.of(context).textTheme.headlineMedium),
'h3': Style.fromTextStyle(CustomTheme.of(context).textTheme.titleLarge),
'h4': Style.fromTextStyle(CustomTheme.of(context).textTheme.titleMedium),
'li::before': Style.fromTextStyle(CustomTheme.of(context).textTheme.headlineLarge)
.copyWith(color: Colors.amber),
},
A picture of a cute animal (not mandatory but encouraged)
this is francois, a good boy who has one (1) brain cell made of shrimp

theFreeman96
Metadata
Metadata
Assignees
Labels
cssEnhancements/issues with css propertiesEnhancements/issues with css propertiesenhancementNew feature or requestNew feature or requestlistsIssues with <ol>, <ul>, and <li>Issues with <ol>, <ul>, and <li>
