Openbravo Issue Tracking System - POS2
View Issue Details
0048481POS2Corepublic2022-01-25 16:132022-02-11 15:02
jorge-garcia 
elara 
normalmajoralways
closedfixed 
5
 
 
No
0048481: ServerStatusButton popover actions styles cannot be modified by CSS
ServerStatusButton popover actions styles cannot be modified by CSS

If passing renderCustomButtons as a prop of the component with several Settings elements to render, elements are rendered in a row (display:flex, flex-direction: row (default)

There is no way of changing this behavior from outside the component
Create a component using ServerStatusButtonActions function to render several Setting options using renderCustomButtons prop (verify cssError.png file)

Verify two things:
1 - All setting options are rendered in a row (making them not reachable)
2 - Popover overlay does not go until the end of the popover placeholder

Allow as a prop the ability to change div generated by renderCustomButtons function

erverStatusButton.jsx

 const ServerStatusButton = ({
   icon,
   serverName,
   label,
   popOverTitle,
   tryOnlineTransition,
   showPendingButton,
   renderCustomButtons,
   showPopoverInOnline
+variantClass
 }) => {

y en esta parte

return (
    <>
      <BaseButton
        variantClass="obc2ServerStatus"

- variantClass="obc2ServerStatus"
+ variantClass=`${variantClass} obc2ServerStatus`

No tags attached.
has duplicate defect 0048503 closed elara JIRA 2657 - On Web POS pager configuration popin is not correctly displayed 
png cssError.png (26,416) 2022-01-25 16:13
https://issues.openbravo.com/file_download.php?file_id=16551&type=bug
png
Issue History
2022-01-25 16:13jorge-garciaNew Issue
2022-01-25 16:13jorge-garciaAssigned To => Triage Platform Base
2022-01-25 16:13jorge-garciaFile Added: cssError.png
2022-01-25 16:13jorge-garciaTriggers an Emergency Pack => No
2022-01-31 18:04guilleaerRelationship addedhas duplicate 0048503
2022-01-31 18:04guilleaerProposed Solution updated
2022-02-03 15:21elaraAssigned ToTriage Platform Base => elara
2022-02-03 15:25elaraStatusnew => scheduled
2022-02-05 00:42hgbotNote Added: 0134796
2022-02-11 15:02hgbotResolutionopen => fixed
2022-02-11 15:02hgbotStatusscheduled => closed
2022-02-11 15:02hgbotNote Added: 0134931
2022-02-11 15:02hgbotNote Added: 0134932

Notes
(0134796)
hgbot   
2022-02-05 00:42   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/merge_requests/697 [^]
(0134931)
hgbot   
2022-02-11 15:02   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2 [^]
Changeset: dc8eba40cd3bcb1c088c26b8e921434413669110
Author: Eduardo Lara <eduardo.lara@smfconsulting.es>
Date: 11-02-2022 14:02:18
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/commit/dc8eba40cd3bcb1c088c26b8e921434413669110 [^]

Fixes ISSUE-48481: Added variantClass prop to ServerStatusButton.jsx

---
M web-jspack/org.openbravo.core2/src/components/StatusBar/ServerStatusButton.jsx
M web-jspack/org.openbravo.core2/src/components/StatusBar/ServerStatusButton.scss
---
(0134932)
hgbot   
2022-02-11 15:02   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/merge_requests/697 [^]