question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add a dot next to unread items in an fdp-list

See original GitHub issue

Is this a bug, enhancement, or feature request?

enhancement

Briefly describe your proposal.

Provide the possibility to add a dot to unread items in an fdp-list (next to the current feature of bolding unread items). Currently, to add a dot next to unread items in a list, we need to heavily use custom CSS which could easily break (see provided code below).

This is what we would like to use (it would be enough if the dot is provided by fundamental, while the color and size may be adjusted by custom CSS): blue-dot

Which versions of Angular and Fundamental Library for Angular are affected? (If this is a feature request, use current version.)

current

Please provide relevant source code if applicable.

We use the following code to add a dot next to unread items: HTML:

              <fdp-list
                [dataSource]="displayRows | async"
                [...]
              >
                <fdp-standard-list-item
                  *fdpItemDef="let item"
                  [unRead]="true"
                  class="listItem"
                  [...]
                >
                  <div class="notification-wrapper">
                    <fd-icon
                      class="notification-icon sap-icon sap-icon--circle-task-2"
                    ></fd-icon>
                  </div>
                  [...]
                </fdp-standard-list-item>
              </fdp-list>

CSS:

.notification-wrapper {
  position: absolute;
  top: 50%;
  left: 16px;
  transform: translateY(-50%) scale(0.5) translateY(-6px);
  height: 6px;
  width: 6px;
}

.notification-icon {
  color: var(--sapAccentColor6) !important;
}

.fd-list__item {
  padding-left: 32px !important;
}

Is there anything else we should know?

As can be seen in the code, the dot we use is the sap icon circle-task-2

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:2
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
burisecommented, Dec 1, 2022

Hi @InnaAtanasova, thanks for the reply. It looks good, I just could not find details about the specs of the blue dot. We have the following requirements:

color: --sapAccentColor6 
height: 6px
width: 6px
padding-left: 1rem
padding-right: 0.75rem

Would it be possible to use these specifications?

0reactions
burisecommented, Dec 2, 2022

I think the combinded padding-left should be 1rem, so when there is already a padding from the outer left border of the List item, no additional padding would be required from the left side. (And as mentioned, from the right side the padding should be 0.75rem).

Thanks again for your efforts, it is really appreciated!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Where is the “Dot” showing unread messanges?
In the 2011 version of Outlook, there was a column for “Dots” next to items that had not been read. They are missing...
Read more >
Actions · SAP/fundamental-ngx - GitHub
bug(platform): FDP list datasource displays no more than 5 items Greetings ... Add a dot next to unread items in an fdp-list Greetings...
Read more >
No blue dot by unread message - Apple Community
I am having issues with my text/iMessage notifications. When I click messages it shows I have no new messages(no blue dot) but I...
Read more >
Change What Your Unread Messages Look Like in Outlook
Outlook 2013 and 2016 will allow you to use Conditional Formatting in your inbox so unread messages will appear with whatever color and...
Read more >
How to change unread mail settings in Microsoft Outlook
This video explains how to change the settings in Microsoft Outlook to make unread emails stand out more and customise how and when...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found