-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(DH): Make font-sizes and colors same across the expandable panel #660
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,10 @@ | |
> | ||
record.metadata.about | ||
</p> | ||
<div class="mb-6 md-description sm:mb-4 sm:pr-16" *ngIf="metadata.abstract"> | ||
<div | ||
class="text-gray-900 mb-6 md-description sm:mb-4 sm:pr-16" | ||
*ngIf="metadata.abstract" | ||
> | ||
<gn-ui-content-ghost ghostClass="h-32" [showContent]="fieldReady('abstract')"> | ||
<p | ||
class="whitespace-pre-line break-words" | ||
|
@@ -32,27 +35,30 @@ | |
*ngIf="metadata.lineage" | ||
[title]="'record.metadata.origin' | translate" | ||
> | ||
<p class="mb-5 pt-4 whitespace-pre-line break-words" gnUiLinkify> | ||
<p | ||
class="text-gray-900 mb-5 pt-4 whitespace-pre-line break-words" | ||
gnUiLinkify | ||
> | ||
{{ metadata.lineage }} | ||
</p> | ||
<div | ||
class="py-4 px-6 rounded bg-gray-100 grid grid-cols-2 gap-y-[10px] gap-x-[20px] text-gray-700 info-grid" | ||
> | ||
<div *ngIf="metadata.recordUpdated"> | ||
<p class="text-sm" translate>record.metadata.updatedOn</p> | ||
<p class="text-primary font-medium mt-2"> | ||
<p class="text-primary font-medium mt-[4px]"> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think it is more explixit to put it in px, because it reflects what is in the mockup. In terms of generated css it's almost the same. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ok, so far we've privileged the non interpolated values (also for the lightest CSS possible, I think). I don't have a strong opinion on this, but maybe we should agree on a best practice. |
||
{{ metadata.recordUpdated && metadata.recordUpdated.toLocaleString() }} | ||
</p> | ||
</div> | ||
<div *ngIf="metadata.updateFrequency"> | ||
<p class="text-sm" translate>record.metadata.updateFrequency</p> | ||
<p class="text-primary font-medium mt-2" translate> | ||
<p class="text-primary font-medium mt-[4px]" translate> | ||
domain.record.updateFrequency.{{ metadata.updateFrequency }} | ||
</p> | ||
</div> | ||
<div *ngIf="metadata.status"> | ||
<p class="text-sm" translate>record.metadata.updateStatus</p> | ||
<p class="text-primary font-medium mt-2" translate> | ||
<p class="text-primary font-medium mt-[4px]" translate> | ||
domain.record.status.{{ metadata.status }} | ||
</p> | ||
</div> | ||
|
@@ -63,7 +69,11 @@ | |
<gn-ui-badge *ngIf="metadata.extras?.isOpenData"> | ||
<span translate>record.metadata.isOpenData</span> | ||
</gn-ui-badge> | ||
<span *ngFor="let usage of usages" gnUiLinkify> | ||
<span | ||
class="text-primary font-medium" | ||
*ngFor="let usage of usages" | ||
gnUiLinkify | ||
> | ||
{{ usage }} | ||
</span> | ||
<span class="noUsage" *ngIf="!hasUsage"> | ||
|
@@ -79,7 +89,7 @@ | |
<p class="text-sm" translate>record.metadata.sheet</p> | ||
<a [href]="metadata.landingPage" target="_blank"> | ||
<mat-icon | ||
class="material-symbols-outlined inline-block align-bottom pt-1.5 text-xs text-black" | ||
class="material-symbols-outlined inline-block align-bottom pt-1.5 text-xs text-black !w-[20px]" | ||
>open_in_new</mat-icon | ||
> | ||
<span class="text-primary break-all">{{ metadata.landingPage }}</span> | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought, we would let the config set the
main
color here (as well as in the abstract above), but maybe I'm wrong (cc @fgravin @jahow)